Validator for linked issues

Gui Ávila
Contributor
December 11, 2020

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.

3 answers

2 accepted

1 vote
Answer accepted
Thorsten Letschert _Decadis AG_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
December 11, 2020

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

0 votes
Answer accepted
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 11, 2020

Hi Gui - You might also take a look at the JMWE app - that's the one we use:

https://marketplace.atlassian.com/apps/292/jira-misc-workflow-extensions-jmwe?hosting=cloud&tab=overview

0 votes
Maciej Dudziak _Forgappify_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 15, 2024

If you prefer a wizzard-like solution, you could try Linked Issues Validator, which is part of the Workflow Building Blocks for Jira

community_15.04_linked_issues.png

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events