Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Set mandatory fields if specific resolutions is selected

Jessica Chapados Arseneault
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 18, 2024

Hey ! 
I'm fairly new to the background of Jira, been working with it for 10 years but was always the user, never the magician behind the scenes. 
So my question to you all today: 
I want to make a Workflow where: 

If i set the resolution to duplicate, it'll make the ''Linked issue'' field mandatory

And If i set the resolution to fixed, it'll force the user to input something in another field. 

Thanks in advance ! 

2 answers

1 accepted

3 votes
Answer accepted
Seon Shakespeare
Community Champion
September 18, 2024

Hi Jessica,

Welcome to the world behind the Jira curtain!

Jira's built-in features don't directly support making fields mandatory based on the selected resolution, but some apps can help with this.

Do you have JMWE, JSU, or ScriptRunner installed in your Jira instance? These apps can add extra workflow features and could be used to achieve what you're looking for.

0 votes
Maciej Dudziak _Forgappify_
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 19, 2024

Hi @Jessica Chapados Arseneault 

It is not possible out-of-the-box, but if you have an app with a Jira expression-based validator, it can be accomplished quite easily.

For example, your expression might look like this:

issue.resolution?.name == 'Duplicate' 
? issue.links.length > 0
: (issue.resolution?.name == 'Fixed' ? issue.customfield_10000 != null : true )

I am from Forgappify, and we developed Jira Expression Validator, which is part of the Workflow Building Blocks for Jira app. 

I am leaving a link to the app's documentation if you are interested.

Cheers

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