Hello, Im running my Jira to DevOps automation through a trigger in Jira. This created a DevOps ticket and populates different things to it.
I have a custom field called Jira (which is referece as Custom.JIRA ) which i try to populate and it does not work.
DevOps Incoming never find that field. I tried through FirstSync and outside first sync and the result is the same, it cant find the field.
this is my script
if (workItem.customFields[“Custom.JIRA”] != null) {
workItem.customFields[“Custom.JIRA”].value = jiraInfo
store(workItem)
}
any ideas why the custom field is not showing up, even if it leave it outside of first sync and then do an update on the jira ticket, it doesnt update that, it updates the description so i know the connection is working.
//workItem.description = replica.description
// Prepend JIRA info to description
def jiraUrl = “https://xxxxxx.atlassian.net/browse/${replica.key}”
def jiraInfo = “JIRA TICKET → ${jiraUrl}” // 4 newlines after the link
//def plainDescription = nodeHelper.stripHtml(replica.description ?: “”)
workItem.description = jiraInfo + “\n\n\n” + replica.description
//replicate the link after the first sync
if (workItem.customFields[“Custom.JIRA”] != null) {
workItem.customFields[“Custom.JIRA”].value = jiraInfo
store(workItem)
}
So thats the issue im encountering where exalate is unable to even see the custom fields on the DevOps side (or even any devops fields that are not custom but are outside summary and description)
Thanks!
Outgoing Jira
// let DevOps know which JIRA key this came from
replica.key = issue.key
// basic fields
replica.summary = issue.summary
replica.priority = issue.priority
//This line below, transforms description from Markdown to HTML to transfer over
replica.description = nodeHelper.getHtmlField(issue, “description”)
replica.attachments = issue.attachments
// custom-field mappings (make sure the names match exactly what you use in Azure incoming)
replica.customFields.“DevOpsProject” = issue.customFields.“DevOps Project”
replica.customFields.“CustomerRequestType” = issue.customFields.“Customer Request Type”
Incoming Jira
if (firstSync) {
issue.projectKey = “ITS”
issue.typeName = “CI”
}