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 votes
Accepted answer

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
Community showcase
Published Nov 29, 2018 in Jira

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,090 views 0 8
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