Question about workflow function

Jason Liu
Contributor
September 7, 2023

Is there a way to have this kind of function: when user change issue status from Open to In Progress, check if the Need UAT field is yes, if it's yes, then Test Phase field is required, and if it's no, then the Test Phase field is not required? Please advise on this. Thank you.

2 answers

0 votes
Suprija Sirikonda _Appfire_
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.
September 8, 2023

Hi @Jason Liu,

Your requirement can be easily achieved using Field Required Validator provided by Jira Misc Workflow Extensions (JMWE) app (Thanks for mentioning our JMWE app, @Sebastian Krzewiński! )

steps to achieve this: 

  1. Add a Field Required Validator provided by JMWE app on the Open to In Progress transition.
  2. Select the "Test Phase" field under "Fields"
  3. Select the checkbox "Conditional validation" under "Validator scope" and add the below script: 
issue.get("customfield_12345") == "Yes"

Replace 12345 with the ID of the"Need UAT" field. The above script assumes "Need UAT' is a Select List (Single Choice) field. Let me know if the field type is different.

I hope this helps!

By the way, I'm part of JMWE (Appfire) support team. If you've any questions on this or need help using the JMWE app, please reach out to us via our Appfire Support Portal.

Regards,

Suprija | Appfire

Jason Liu
Contributor
September 10, 2023

Hi Suprija, I check in our workflow validator and I didn't see checkbox "Conditional validation". Please see the screen shots:

JSU FR.pngJSU validator.png

0 votes
Sebastian Krzewiński
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 8, 2023

Hi @Jason Liu 

 

Out of the box jira don't have feature like you described. You need to use add-on that extend workflow capabilities. Please check what apps you have on your instance.

This you can achieve with Script runner or JMWE or JSU app.

 

Regards,

Seba

Jason Liu
Contributor
September 8, 2023

Hi Sebastian, yes, we have script runner and JSU. I prefer to use JSU. Do you know how to do it?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.5.2
TAGS
AUG Leaders

Atlassian Community Events