Is there an easy way to unflag an issue if all of its blocking linked issues are resolved.
I don't find any plugin that can help to solve this request. Is custom development is the last option ?
Following is the description:-
Let say B is the current issue on which a transition is made and it is the blocking issue for issue A, where A is flagged.
Post function to be added in a specific transition.
Following calculation and action needs to be done.
1. Find the issue A which is linked ("is blocked by") to the current issue B.
2. Find the list of the issues and their status which are linked ("blocks") to issues A.
3. Check the statuses of issues found in step 2.
a) If atleast an issue is not Resolved. Do not do anything.
b) If all the issues are resolved, clear the flag of issue A.
I am not able to find any plugin which has this feature built-in already.
I believe you might be able to achieve this using scripts via scriptunner plugin:
It may be a good idea of exploring this plugin and if you have any questions around the usage of this plugin, you may contact scriptunner support :
Hi @Hitendra Chauhan ,
while your scenario might not be doable out of the box, a workflow app like Jira Workflow Toolbox might help here using its Update issue fields post function.
The result might look like this:
Some additional explanations:
Starting from your issue B, we're defining the target issue with the expression
that returns issue A.
In order to delete the flag, the Flagged custom field (created by Jira Software) has to cleared.
This is the 'fun' part. Since your requirement states that the flag should only be removed, if all blocking issues are resolved, you have to use an expression like
count(filterByResolution(linkedIssues("is blocked by",linkedIssues("blocks")),"")) = 0
This expressions counts all the unresolved blocking issues and returns true if no issues are found (that said all blocking issues are resolved).
It's important to place this post function after the one setting the resolution of your current issue.
@Thorsten Letschert _Decadis AG_ : Thanks, I got an idea with your code snippet. Unfortunately I can't use Jira Workflow Toolbox as we use Script Runner for such sort of automation.
I am almost done with the code using script runner. It may need some optimization which I think I can do.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events