Mandatory field during transition

AgileHappyLearner
Contributor
January 25, 2023

I would like to do a field as mandatory when an issue is transitioned from resolved to closed using JMWE. I have a common workflow for different type of issues (bugs, tasks and user stories) and I would like to apply this restriction just for the issuetype = bug and if the RootCause field is =  Development Issue OR Development Issue - Obsolescence or Development Issue - Security

1 answer

1 accepted

0 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.
January 25, 2023

Hi @AgileHappyLearner 

you can use a Field Required Validator (JMWE app), select the field that should be mandatory, and use this as the "conditional validation" script:

issue.get("issuetype").name == "Bug" && issue.getAsString("RootCause") in ["Development Issue","Development Issue - Obsolescence","Development Issue - Security"]
AgileHappyLearner
Contributor
February 1, 2023

Thanks for your answer and sorry I didn't say anything before but I hadn't had time to test it

Suggest an answer

Log in or Sign up to answer