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.
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:
Target issue
Starting from your issue B, we're defining the target issue with the expression
linkedIssues("blocks")
that returns issue A.
Target fields
In order to delete the flag, the Flagged custom field (created by Jira Software) has to cleared.
Conditional execution
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.
Cheers
Thorsten
@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.
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.
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:
* https://marketplace.atlassian.com/apps/6820/scriptrunner-for-jira
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 :
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.
That's awesome! Glad to hear that @Hitendra Chauhan . Cheers
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 giving me some ideas on how to solve this as I had exactly the same issue!
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.