Making custom field items mandatory or optional applied as validator to a transition

I recently implemented a custom field validator on a workflow transition.

my custom field items list are start, stop,restart, now when a user moves a issue to close issue state he has to select the items of custom field.

Can we make the some items of the custum field mandatory , so that if the user has to check mark all mandatory items of the custom field to close a issue?

1 answer

1 accepted

0 vote

Yes. In the same way you've done the existing mandatory fields. (I'm not sure there's actually a question here - could you explain if I've missed something?)

I am not asking to make a custom field mandatory ..... for eg i have custom filed(with checkboxes) as DOD in which i have 3 items start, stop , restart. So is it possible that i make start and stop as mandatory so that whenever a user tries to close a issue he will have to mark start and stop from the custome field options so that he is able to close the issue . if the user doesnt mark start and stop while closing it should fail giving a message that you need to mark the mandatory fields in order to close this issue

yeah rite i want to make items mandatory .... is there a way you know how to make it happen?

Er, that seems to say "I don't want to make the fields mandatory, I just want to make them mandatory". Which is it?

Use a validator, as you already said.

If you're writing your own, you can put whatever rules you need in it as well - not just "field must be filled", but things like "if <something is true>, then the field must be filled, otherwise let the user leave it blank"

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

155 views 1 17
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