Hi!
I need to add a validator to a transition so issues can only be moved to "Pending" status if there is at least 1 linked issue with "is blocked by" type.
So I chose this option here, but I'm afraid that does not solve the problem, because there is no other option in the next step.
What is the better way to accomplish this validation?
Thanks,
Gui.
Hi @Gui Ávila ,
looks like you'll need a validator based on a Jira expression like
issue.links.filter(link => link.type.name == "Blocks" && link.direction == "inward").length >= 1
To do so, you'll need a workflow app capable of adding those Jira expressions as a validator like Jira Workflow Toolbox (https://marketplace.atlassian.com/apps/29496/jira-workflow-toolbox?hosting=cloud&tab=overview).
An overview of apps in this area can be found here: https://marketplace.atlassian.com/search?category=Workflow&hosting=cloud&product=jira
Disclaimer: I'm part of the team behind the aforementioned app.
Cheers
Thorsten
Hi Gui - You might also take a look at the JMWE app - that's the one we use:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you prefer a wizzard-like solution, you could try Linked Issues Validator, which is part of the Workflow Building Blocks for Jira.
It solves the described case; you only need to select the "is blocked by" link type and check the "At least one linked issue, as defined above, must exist" option.
Full disclosure: I am from Forgappify, the vendor of the app.
Cheers
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.