How can I make a field required only on one screen?

Hey folks,

If anyone can help me with this I would greatly appreciate it.

I have a simple custom field (a radio set) which is "required" when closing an issue.

Any chance I could include it on the "create" screen - but - in that case, making it optional?

Thanks!

5 answers

0 vote

Hi Andrew,

You can use the JIRA Suite Utilities add-on (field required validator) and set a field required only when executing a given transition.

Hope this helps.

Cheers,

Clarissa.

Hi, Clarissa, Is it possible to make a comment and a work log item mandatory? As far as I know, these are not fields, but rather lists that contain many items. I thought of a custom screen and selecting it for transition, but I could not find any information whether I could use custom screens (the ones created from velocity templates and Java code) in transitions. Then I thought about two custom fields, one for comment, another for log time. I could populate them on transition screen, require them in custom Validator, copy to comments and work log accordingly in custom post function and clearing them in another post function. What do you recommend?

Clarissa - thanks so much!  And thanks for the fastest forum response in human history smile

0 vote
Joe Pitt Community Champion Feb 19, 2015

You can't. The way you handle this is you put the field on a screen used in the transition to close and require it there with the jira-suite utilities or other plugin. If you only want it updated there I would only put it on the view screen besides the transition screen. If you haven't installed the jira-suiite utilities plugin I strongly suggest you do. It is very helpful.

Clarissa-

Does the JIRA Suite Utilities solution you have suggested allow for marking the field as required (in Andrew's case) on the 'Close Issue' screen, or does it only validate it when you attempt to actually close the issue? 

Tim

Hi there,

 

You can refer to this page https://confluence.atlassian.com/jirakb/how-to-make-jira-applications-fields-required-in-a-workflow-transition-691011903.html to give the workaround or resolution a try.

 

Thanks,

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira Service Desk

Wy are we still using email for Service Desk workflows?

...attest to the experience of an urgent approval that gets lost in the boss’s inbox and requires that special “Please Approve” email or text message. In an age where we have distributed teams...

111 views 0 2
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