Forums

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

How to make a custom field mandatory in status transition?

Tal Kdoshim October 29, 2018

I want to make a custom field mandatory when choosing a specific status -

A custom field to be required when changing the status to "In review", in Bug issue type.

Anyone?

2 answers

2 accepted

1 vote
Answer accepted
Alexey Matveev
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.
October 29, 2018

Hello,

You can add the Field Required validator, if you are on Jira Cloud.

If you are on Jira Server, then you would need an add-on. For example, you could use the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

You could write a validator wiht a code like this:

if(!hasInput("customfield_10200")) {   
  return false, "customfield_10200", errorMsg;
}
return true;

10200 is the id of your custom field.

You can find more info about validators here:

https://confluence.cprime.io/display/JJUPIN/Customizing+workflows

Tal Kdoshim October 29, 2018

Thanks Alexey. How do I know if my org uses Jira cloud or server?

Alexey Matveev
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.
October 29, 2018

If you are on Cloud, then your url is something like this:

yourdomain.atlassian.net

Like # people like this
Tal Kdoshim November 1, 2018

Thanks

0 votes
Answer accepted
Joe Pitt
Community Champion
October 29, 2018

JIRA Suite Utilities (JSU) also allow you to do it along with many other useful features. 

Tal Kdoshim November 1, 2018

Thanks, was looking for a free solution

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events