JIRA field content check

I want to be able to validate a JIRA field content.  For example, only if the entered value matches some other value, then JIRA allows to update that field.  Besides Behaviour plugin, is there other way/plugin that does this task?  Thanks.

1 answer

0 votes

The standard way to do that is use validators in the workflow - they can check the content of fields and prevent issues moving on if things are incorrect.  There's not many distributed with off-the-shelf JIRA, but loads of them in add-ons, and you can write your own with Script Runner

Thanks for the reply.  Now with workflow validation, it's after the fact, isn't it?  We want to be able to validate and accept / deny the change right at update time.

Can you provide an example on how to use Script Runner to do a real time check?  Thanks.

Yes, validators kick in after the user clicks the button to go on through the transition, and return the user to the screen with an error message on why it's failed validation.  That is "accept/deny at update time".

You could do some horrid validation with javascript, but I'd recommend avoiding them for the sake of usability.  If you had a simple case such as a field for "continent" and a second for "city" and the user selects Europe and then you validate their selection of "New York" as invalid, it's a right mare to have a box pop up to tell me that's wrong immediately, it should be on commit.  By all means, blank out the selected city, remove invalid cities from the options, but don't interrupt the user with inline validation.

I'm not aware of any add-ons that would allow you to define your own rules other than Behaviours in Script Runner.  There are some which will do a lot of validations, but they're mostly for fixed cases (like date A after date B)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,294 views 5 10
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