Reputation: 533
In Jira I am trying to show in the swim lane card itself, on which issue it is blocked if blocked at all. For this I tried creating a configure field "Blocked by" and added it as a field to issue type Story.
Now I am trying to create automation that will trigger when a relation "blocks" or "is blocked by" is created. When such relation is created I want the field to get updated so that I can display it in Jira card.
For example: Issue B is blocked by Issue A, then In field "Blocked by" of issue A I want to display Issue B.
I already tried these steps:
From project settings went to Automation.
Selected "create rule"
In rule: Trigger: When Issue linked. Linked types = Blocks Action: Then edit issue fields. Chose "Blocked by" from drop down. In value I gave {{issue}}.
Save and Published.
While testing, Set Issue B "is blocked by" Issue A it is updating the Issue B's "Blocked by" field with "Issue A", which exactly opposite of what I want.
even if in the rule I change value to {{destinationIssue}}, then again its wrong as it puts value "Issue B" which is totally wrong.
Upvotes: 0
Views: 1220
Reputation: 533
So finally its resolved. I got good directions from the Community leader of below Atlassian community. Atlassian Community page
Answer lies in three steps.
Note: {{triggerIssue}} here is the one that gets updated for first time. If we create "blocked by" relation again it got appended by {{issue. Blocked by}} Note2: Before all this I added "Blocked by" as one of the custom fields.
This field then I added on the card layout. Very good to have the Blocked by issue on the card of a particular issue on kanban board.
Upvotes: 0