How do I prohibit issue creation(or change) with certain custom fields values?

Hi! I have jira 6.0.8.

How do I prohibit issue creation or change if customfield_1 has value "In development" and customfield_2 has value "None"? Any other combination of values is allowed - the issue can be created or changed.

Is it going to be a listener?

I'd appreciate any help. Thanks!

2 answers

0 votes

A listener is too late - any changes will have been committed already.

You can do it in validators in the workflow, but there's nothing to stop someone performing edits that you cannot validate like this. The best you can do is block edits completely with the "do not allow edit" property on the workflow steps you need to stop them at, and moving your edit down into the workflow.

Thanks a lot!

But anyways, what if I want to control edition? How do I catch the event when someone is trying to edit the issue?

using script runner validator you can achive this

simple script validation you can do as follows

cfValues['customfield name1']?.value == 'In development' && cfValues['customfield name12']

check here more about script runner plugin

check this it will help you

rambanam prasad Thanks!

So, all I have to do is I have to put this:

cfValues['customfield name1']?.value == 'In development'&& cfValues['customfield name12']

in "Simple scripted validator" (Runs a simple embedded script to find out whether to allow the transition or not) of my transition?

yes and don't forgot to update custom field names :)

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,980 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot