Mandatory Fields for a Transition

Hi,

I put validators for certain fields during some transitions in my JIRA workflow.

Those fields are mandatory only on the resolve screen.

It works well however users are frustrated that there is no red star indicating it is mandatory on those screens.

Is there any way to make the star show up on those screens?

Thanks,

Cynthia

9 answers

1 accepted

This widget could not be displayed.
This widget could not be displayed.
Joe Pitt Community Champion Mar 10, 2015

No.

This widget could not be displayed.

Yes you can! But maybe you gonna have a bad time implementing this feature. The only way that a figured out is using Behavior add-on. You can use something like:

getFieldById("customfield_10301").setRequired(true) //will make this CF mandatory with stars

If you need some help to use behavior please check this link: https://jamieechlin.atlassian.net/wiki/display/JBHV/JIRA%20Behaviours%20Plugin

I just tested this with custom fields and it works great!!! However I don't know how to do it for fix version/s. Any ideas?

You can get the field by name... getFieldByName("Fix Version'/s").setR.....

This widget could not be displayed.

Can you tell me which JIRA version you are using? Because I get errors when trying to use validators. (see https://answers.atlassian.com/questions/11962955/simple-scripted-validator-not-showing-defined-error-message-when-condition-is-not-met)

This widget could not be displayed.

I'm using version 6.3. The validators are working well for me.

This widget could not be displayed.

Which 6.3 exactly? We habe 6.3.13 and trying to use a validator priority!=average does not work.

This widget could not be displayed.

We are using 6.3.15

This widget could not be displayed.

There is something wrong your validator It would be more something like issue.priorityId != '4' where 4 would be the id of average.

This widget could not be displayed.

Thanks for help. I got it working with issue.getPriorityObject().getName().equals("None")

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

536 views 23 15
Join discussion

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