Validate flow start only if item has child issues
Asked by Massaut:

Hello everybody. I have jira cloud enterprise and the JMWE application installed. My instance has some issue type hierarchy levels beyond epic and I need to validate an issue: only allow the status transition of an issue if it has any child issues assigned to it. This specific item is a new type of item that I configured in the advanced roadmap at the same level as the epic. What is the best way to carry out this configuration?


Answers:
author: Maciej Dudziak _Forgappify_
body: Hi [@Massaut](/t5/user/viewprofilepage/user-id/4865581)

I'm not familiar with JWME, but if the validators there don't meet your needs, consider trying the Linked Issues Validator available as part of the [Workflow Building Blocks for Jira](https://marketplace.atlassian.com/apps/1233642/workflow-building-blocks-for-jira?hosting=cloud&tab=overview) app. I am from Forgappify, the vendor of the app.

The configuration for your case is pretty straightforward. Take a look below:

![community_08.08.24.png](https://community.atlassian.com/t5/image/serverpage/image-id/340738i19C68FC35FDFE739/image-size/large?v=v2&px=999 "community_08.08.24.png")

I hope it will help.

Cheers

comments: author: Massaut
body: Hi [@Maciej Dudziak _Forgappify_](/t5/user/viewprofilepage/user-id/5267224) !  

Thaks for your help!  

This work!! And better, ths app it free :)


author: Lisa Forstberg
body: HI [@Massaut](/t5/user/viewprofilepage/user-id/4865581) ,

So for issue of type X you want to validate that the user should not be able to make transition Y if issue has no children?

First decision you need to do is it you want to build

1. a condition (do not present the transition for the user if the conditions are not fulfilled)
2. a validation (send error message if user tries to perform the transition if the conditions are not fulfilled)

I often tend to prefer validations in these cases as it gives the user a hint of what is needed.

I would explore JWMEs [Linked Issues Condition](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/466226242/Linked+Issues+Condition) or their [Linked Issues Validator](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/466323119/Linked+Issues+Validator) . I don't have these in any of my environments today to test out the case, but you should be able to choose link type when configuring the functions, and if you have the structure Parent/child set up in your issue hieararchy that should be used on the condition or validation.

best of luck

Lisa

comments: author: Massaut
body: Hi [@Lisa Forstberg](/t5/user/viewprofilepage/user-id/5101516)  

Yes, this is exactly my need. The issue to leave the backlog for in Progress needs to have children.

I tried to do both methods here with JMWE: condition and validation, but in neither of them was I successful.?

I'm imagining that the application has a bug or this functionality only works for native Jira issues.

Thank you for your time.  


author: Lisa Forstberg
body: I would contact the support of the applications to get some more help or maybe post a picture of your workflow validation here so we can investigate it further.

Normally the Addon vendors have an excellent support!

br

Lisa


Tags: addon-com.innovalog.jmwe.jira-misc-workflow-extensions

cloud

jira-cloud

jmwe