Can't select Parent if is done

David Plesu
Contributor
February 16, 2024

Hello,

I hope you are doing well!

I would like to ask if is there a possibility to not created childes of an epic/parent if the parent is done.

For example I have an closed epic, I created a story, and selected the parent this epic. 

-> the child is created(story) and attached to this epic.

I need to not be possible to select or create a child if the epic is done!

Regards,

David.

3 answers

1 accepted

3 votes
Answer accepted
David Plesu
Contributor
February 19, 2024

Hello,

I hope you are doing well!

I have found a simple way: Parent validator in my list was. And just only added the states that the parent should be! 

 

Regards,

David

0 votes
Avinash Bhagawati _Appfire_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 16, 2024

Hi @David Plesu  Good day!

Please note that you can achieve this use case using JMWE's Build-your-own (scripted) Validator. 

Refere this article : https://appfire.atlassian.net/wiki/spaces/_/pages/466226183?atlOrigin=eyJpIjoiNzU0MTk5ZThhMjg3NDAwYWIxYTgyYmQ2ZWNiODVjZDAiLCJwIjoiYyJ9

 

Sample code:

(issue.issueType.name != "Story") || (issue.issueType.name == "Story" && (!! issue.epic && !! issue.epic.key) && (! issue.epic.resolution || ! issue.epic.name))

 

The code will validate as follows:

  • If the issue type is not "Story," the validation will pass, and it will create the issue.
  • If the issue type is "Story" and the user doesn't provide a parent value, it will prompt the user to input the parent value.
  • If the issue type is "Story" and the user adds a closed epic, it will prompt the user to input an open epic.
  • If the issue type is "Story" and the user adds an open epic, it will create the issue as expected.

    100.png

Please note that in the provided code, "closed" is considered when the resolution is not empty, and you can customize the Jira expression further based on requirements.

BTW, I'm from Appfire, the vendor of JMWE app and above provided configuration is one of the solution that can be achieved with the help of JMWE 

I hope this helps you!

Thanks,
Avinash

 

Bill Sheboy
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.
February 16, 2024

Hi @Avinash Bhagawati _Appfire_ 

As a reminder...When recommending a marketplace vendor product, please ensure you disclose your affiliation to that vendor in your post wording. For more information about this please see:

Atlassian Community online guidelines | Marketplace + Solution Partners | App Central

https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Atlassian-Community-online-guidelines-for-Marketplace-and/ba-p/689723

Kind regards,
Bill

0 votes
Dexter de Vera
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 16, 2024

Suggest an answer

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

Atlassian Community Events