How to set Mandatory field based on Resolution field value ?

How to achieve setting the Mandatory field based on Resolution field value ?

Currently we are using Cloud JIRA.

5 answers

0 votes
Joseph Pitt Community Champion May 09, 2016

If you need to set it in the same transition where you set the resolution I believe you're out of luck since cloud doesn't allow scripting. If you want to do it after that transition you can use a combination of validators and post functions, which are available.

Thanks @Joe Pitt. Yes, I'm looking for the same transition.

For Eg:  If Resolution Field is marked as Fixed, then some custom fields should be mandatory. For other option it can be normal.

Workflow shouldn't allow users to change the issue status to Resolved unless they updated the mandatory custom fields which ever we are setting as mandatory. (when resolution is marked as Fixed).

- Kavi

 

Joseph Pitt Community Champion May 09, 2016

As I said, since you're in the cloud version I believe you're out of luck

I am looking into this issue now. We use on-prem server. I can see in the workflow validator where I can fields to be required, but how do I condition that based on the resolution? We want 5 custom fields to be required only if a particular resolution is set, else they can be left blank.

Joseph Pitt Community Champion Oct 02, 2018

If you are trying to require them on the same screen as setting the resolution I don't believe you can. The resolution value won't be set until AFTER the transition is complete. 

Hi, I want to do the same. Can someone guide me how to write correct the validator?

We are using internal JIRA

Version  7.0.11

 

Thanks

Curious how to do the same...

"Require a custom field ONLY upon selection of Resolution 'Fixed'."

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,313 views 12 19
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you