What I want is to achieve is this;
When issue "B" is blocked by issue "A" then
In the field "Blocked by" of ticket "B" automatically update with issue A .
So far, I created and added the "Blocked by" field which is different than the issue links "is blocked by". I want this to be updated when we create a "blocks" relation from A to B or "is blocked by" relation from B to A.
But I am not able to achieve this by automation.
I tried using Trigger "Issue linked" but failed to do so.
Welcome to the Atlassian Community !!
"Blocked by" Is this a Custom Field which you want to update?
You need to add the automation rule like this to update the your Blocked by custom field
In the Edit Issue use the smart value to get the source issue or destination lssue key in the custom field
{{issue}} - source issue,
{{destinationIssue}} - for destination issue
Accept the answer if it helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the answer. That clarifies I am on right track.
Your answer helped me 50%
I put this in the field. {{issue}} blocking {{destinationIssue}}
It really updates the {{issue}} "Blocked by" field.
I want the "Blocked by" field of {{destinationIssue}} to be updted. Both of them have this field.
If A blocks B
then Blocked by or any other field I wanto update in Issue B. Because we want to know in Jira swimlane view what is blocking B, even if A is in some other sprint or backlog we may not want to see that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Lokeshpurohut ,
For that you need to add Branch Rule /Related Issue Component and then action component like this
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.
Sorry, I commenteed too early. One issue here. Now I am able to update the destination issue but we are losing information about the triggerIssue or main issue.
Once we enter in Branch of Destination issue, {{issue}} and {{destinationIssue}} are same
so still I am not able to update which issue is blocking issue B, instead its displaying
B blocking B for expression "{{issue}} blocking {{destinationIssue}}" used.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry I have to ask again the above method loses information about
{{issue}} if we enter into Branch rule.
There it just updates "B is blocking B" in my case when using
"{{issue}} blocking {{destinationIssue}}" (looks like both got same value somehow)
In screen shot you will see I also tried using a variable blocking_issue assigning it {{issue}} but that is also appearing blank in the final output when I use
blocking_issue or {{triggerIssue.blocking_issue}}.
Appreciate your help. I am able to update the field of Destination issue with above trick you suggested. This last hurdle is trickier.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This later resolved by using {{triggerIssue}} inside the Branch of Desitnation issue.
Now all sorted out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.