Hello,
I am looking for assistance with Jira Automation please.
I have 1 JSM project and a Jira Project, both have the same Cascading Field. Users select the Cascading Field values during ticket creation on the portal, when issue is submitted automation then creates an Epic in a Jira project. I am trying to automate the copying of the values of the cascading field from the JSM ticket to the linked Jira issue.
I feel like I've tried every possible permutation of the automation configs but nothing seems to be working. I have an automation which copies the values from the epic to it's children and that works fine, but this one has me stumped (or I've simply been looking at it for too long and have Jira Automation Blindness), so any help would be gratefully received.
Cascading field is called Contract, it's ID is 10740
The JSM project (BDUK) is where the values are held
The Jira Project (PAP) is where I would like the values copying to.
The automations scope is set to Multiple Spaces with BDUK and PAP being selected.
Trigger is set to Work Item Created on Project BDUK
Branch then set for all linked work items
Then Edit work item fields using additional fields set to:
{
"update": {
"customfield_10740": [
{
"set": {
"value": "{{triggerIssue.fields.customfield_10740.value}}",
"child": {
"value": "{{triggerIssue.fields.customfield_10740.child.value}}"
}
}
}
]
}
}
I have also tried to add the automation to the PAP project and used the below to look at getting the info from the linked issue, but this didn't work either:
{
"fields": {
"Contract": {
"value": "{{issue.issuelinks.inwardIssue.fields.Contract.parent.value}}",
"child": {
"value": "{{issue.issuelinks.inwardIssue.fields.Contract.child.value}}"
}
}
}
}
If anyone is able to assist I would be forever grateful :-)
Use the below
| { "fields": { "customfield_10538": { "value": "{{triggerIssue.customfield_10538.value}}", "child": { "value": "{{triggerIssue.customfield_10538.child.value}}" } } } } |
works fine and creates the epic in the other project and copies the cascade field values. use your own custom field.
Hope this helps!
Hi Christos,
Thanks for the reply, your answer seems to be what I already had, but I did actually resolve the issue by adding a delay of a few seconds.
I really appreciate your response and you taking the time to assist
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Without seeing your entire rule and audit log details, you describe solving this symptom by adding the Delay() action, but you may have only partially / temporarily solved the problem.
The root causes are known, racetrack timing defects:
At a minimum, I recommend adding the re-fetch and moving the conditions from the trigger.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This makes sense, thank you Bill. I will add the re-fetch now.
I will investigate how to build the variable and give that a shot too.
I really appreciate your response :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.