Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira Automation - Field update to edit current field value based on an inward linked field value

Hunter1428
Contributor
February 25, 2021

Hi all,

When I update a ticket, I want it to look at the first inward ticket and update the current issue field value to the same value to the inward value.

Apologies if I'm using the word "inward" the wrong way around. 

I wrote it maybe better here:

  1. I have 3 issues linked in a chain, A >B > C
  2. A has value x, B and C have no value.
  3. On B update I need it to copy the value from A.
  4. On C update I need it to copy value from B.

Is this possible and how?

In our email we use {{issue.issuelinks.first.inwardIssue.issuetype.cf0000}} which works great and I think will work here. But I cannot get this to work for edit issue nodes.

Thanks

1 answer

1 accepted

1 vote
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 25, 2021

Hi @Hunter1428 

If I understand your question correctly, I believe you can do that with a branch using JQL, matching the key on the link from the triggering issue. 

Perhaps try that and if there are problems, post an image of your rule and audit log to see how the community can help.  Thanks!

Best regards,

Bill

Hunter1428
Contributor
February 26, 2021

Hi @Bill Sheboy 

Thanks for the quick reply!

I understand what you mean but I'm still struggling to get this to work.

Also here is some more detail to hopefully clarify on what I need :)

Diagram1.JPGWhat I don't want to happen is when A is updated to send the value to B. I need it the other way around.

  • When B is updated, I want it to take the value from A.
  • Same for C, I want it to take the value from B and not when B updates to send the value to C

So if C is added to the end of the chain and B has not yet updated to take the value from A, then C also will also not get the value as it's not present in B.

I can easily get A to send the value to B when A is updated. But I don't want to update A to pass the value to B, because this would be sending the value down the chain. I need the lower items to take the value from above if possible.

Thanks!

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 26, 2021

Hi @Hunter1428 

Sorry, I just noted you are on server and not cloud. There are some cloud features that would have helped, but I believe you can still do this... For your version I suspect you may need to turn this problem inside out and use two rules:

First rule:

  • Trigger: issue updated (with whatever conditions you need)  e.g. ISSUE-B
  • Condition: has a linked issue per your conditions  e.g. ISSUE-A
  • Action: do what you need to do for the updated issue   e.g. ISSUE-B
  • Branch: on the linked issue   e.g. ISSUE-A
    • Action: update the linked issue (e.g. comment) to indicate it needs to pass on the value   e.g. ISSUE-A

Second rule (with Allow rule trigger enabled):

  • Trigger: detect the comment added from the first rule   e.g. ISSUE-A
  • Branch: on the linked issue from the first rule   e.g. ISSUE-B
    • Action: edit the linked issue with the value from the trigger issue   e.g. value from ISSUE-A goes to ISSUE-B
Like Hunter1428 likes this
Hunter1428
Contributor
February 27, 2021

Hi @Bill Sheboy 

This is great, it worked perfectly. Thank you very much for you help with this!

I'm going to try and see if I can get this working on 1 automation and without the need to affect multiple tickets. But it works, so it's a starting point!

Thanks again!

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer