JMWE linked issues workflow validator not working as expected

Saurabh Chaurasia October 25, 2024

I am trying to create a validator on my issue creation workflow using JMWE app.

I basically don't want the following linkings to pass through

1. Bug with any other link type than 'blocks'
2. Bug + other issue type
3. Any other issue types 

What I want to pass the validation

1. Single or multiple bug issue type with linking type 'blocks' only

I have tried all the options available 

ie 

Require the creation of issue links on the transition screen

Validate issue links added on the transition screen, if any
Require certain linked issues

Check linked issues

Forbid certain linked issues

 

Examples that I have tried
Forbid certain linked issues
Screenshot 2024-10-25 at 8.45.07 PM.png

Check linked issues
Screenshot 2024-10-25 at 8.57.56 PM.png

Require the creation of issue links on the transition screen
Screenshot 2024-10-25 at 8.18.02 PM.png


None are working
It either still allows to create what I don't want/ or block everything (in the second example)

anyone faced similar issue or has the solution?

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
4 votes
Answer accepted
David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 25, 2024

Hi @Saurabh Chaurasia 

try using a Build-your-own Validator with this script (Jira Expression):

issue.links.every(il => il.type.outward == "blocks" && il.direction == "outward" && il.outwardIssue.issueType.name == "Bug")
Saurabh Chaurasia October 25, 2024

Hi @David Fischer 

Thanks for this. This works. Do you have any documentations that I can read on this for other similar use cases?

David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 25, 2024

The official JMWE Cloud documentation, and in particular https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/465241623/Using+Jira+Expressions

Like Saurabh Chaurasia likes this
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events