Azure synchronization to Jira

Originally asked by Harold Oconitrillo on 01 December 2022 (original question)


Hi,

I have a sync from AZURE to JIRA.
I only want EXALATE to SYNC creating of items:

  • If a NEW item is created in AZURE, I want it created in JIRA through the trigger.
  • If an EXISTING item is updated in AZURE, I don’t want any actions performed in JIRA.

Can you help me with this?

Regards.


Comments:

Ariel Aguilar commented on 01 December 2022

Hi there,

If you set a trigger in Azure, it will only trigger new created workItems, and if you want to only configure your sync for issue creation make sure for example in Jira to include all rules under firstSync as for example:

if(firstSync){
   issue.projectKey   = "TEST" 
   // Set type name from source issue, if not found set a default
   issue.typeName     = nodeHelper.getIssueType(replica.type?.name,     issue.projectKey)?.name ?: "Task"
   issue.description  = replica.description
   issue.comments     = commentHelper.mergeComments(issue, replica)
   issue.attachments  = attachmentHelper.mergeAttachments(issue, replica)
}

Regards