web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Setting Feature as Par...
Power Automate
Unanswered

Setting Feature as Parent for a Bug - How to set the Parent ID?

(0) ShareShare
ReportReport
Posted on by 3

Good morning! I'm new to writing script and I'm having an issue setting the Feature as the Parent for the Bug I'm creating. Can someone Assist? I used 'XXX' for privacy purposes. My concern is just setting the Parent.

 

 

 

/* SFDC ADO OUTGOING */
if (entity.entityType == "XXXXX__c") {

 replica.Name = entity.Name
 replica.Summary__c = entity.Summary__c
 replica.Description__c = entity.Description__c
 replica.Priority__c = entity.Priority__c
 replica.Severity__c = entity.Severity__c
 replica.IsPostRelease__c = entity.IsPostRelease__c
 replica.attachments = entity.attachments
 replica.RecordTypeName__c = entity.RecordTypeName__c
 replica.CaseType__c = entity.CaseType__c
 replica.Module__c = entity.Module__c
 replica.StepsToReproduce__c = entity.StepsToReproduce__c
 replica.DueDate__c = entity.DueDate__c
 replica.CriticalClinicalImpact__c = entity.CriticalClinicalImpact__c
 replica.ParentId = entity.ParentId;
}

if(entity.entityType == "XXXXX" && entity.RecordTypeName__c == "XXXXX") {
 //replica.projectName = "XXXXXX"
 replica.projectName = 'Salesforce Connector'
 replica.issueTypeName = "Bug"
}

if(entity.entityType == "XXXXX" && entity.RecordTypeName__c == "XXXXX" && entity.IsPostRelease__c == false) {
 replica.Summary__c = '[' + entity.Name + '] ' + entity.Summary__c
 replica.ParentId = '59523';
}

if(entity.entityType == "XXXXX" && entity.RecordTypeName__c == "XXXXXO" && XXXXX == true) {
 replica.Summary__c = '[' + entity.Name + ' XXXXX] ' + entity.Summary__c
 replica.ParentId = '59536';
}

if (entity.entityType == "XXXXX" && entity.RecordTypeName__c == "XXXXx") {
 //replica.projectName = "XXXXX"
 replica.projectName = 'DevOps Test'
 replica.issueTypeName = "Defect"
 replica.Summary__c = entity.Summary__c
}

 

 

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at

    Hi @kaleighgarcia,

     

    What type of script are you writing, which programming language are you using?

     

    This is the Power Automate forum, so you might be in the wrong place to ask your question. You might want to try the Azure DevOps forum instead:

    https://techcommunity.microsoft.com/t5/azure-devops/bd-p/AzureDevOpsForum

     

    Or do you want to achieve this your goal with a Power Automate flow instead? 

     

    Typically in Power Automate expression language functions like equals, and, concat are used for the operators in your script. And you can also use out of the box actions like conditions to check for input and apply certain logic.

  • kaleighgarcia Profile Picture
    3 on at

    Thanks, @Expiscornovus ! I figured it out. I'm writing in Groovy and using Exalate to sync between SF and ADO. I needed to add a line to my Incoming sync script to write to the Work Item and create a Parent ID. Rather, where I was writing it in the Outgoing sync in SF. I appreciate the response! 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard