Validation on Edit Issue

I have a validation script running on Issue Create operation and it is found executing while creating issues. If i edit the issue, the validation is not firing. What should i do in this case?

5 answers

you can go through Jira Scripting Suite(JSS) plugin in which you can add workflow and edit validators and postfunctions.

https://marketplace.atlassian.com/plugins/com.quisapps.jira.jss

Hi Bharadwaj,

I have seen the comments as really helpful but there is no proper documentation available for this plugin. Could you please suggest any samples to know more about this?

Hello srinivas,

even I donot find any proper documentation for JSS.

Alternatively you can implement your requirement by extending Edit Action and Quick Edit Action.

The following link help how to extend those actions.

https://answers.atlassian.com/questions/83433/validator-support-for-edit-quick-edit-and-soap

That's a tricky question indeed... The validation script it's fired like a part of the workflow.. editing your issue isn't part of the workflow so it can't be fired...

What you can do it's run the validation when a transition it's made so it checks the changes the issue had. Or don't give permissions to edit issue an just use the edit issue screen as a transition screen.

another way is, remove the fields which need to validate on edit screen and create workflow transitions something like "Update Data" and field to that screen so in this way you can validate fields

Hi Prasad,

Its a good suggestion and I really appreciate your advise. I am facing issues with validation. Actually the validation is very simple and I am using simple script validation which is really killing me. Could you please help me on that?

i am not sure how to configure validator for edit screen,

if you create a Intermeadiate workflow transition then you can configure validator.

ask user to use this transition to update data instead of using edit

hi, do you need to check if the all the required fields are filled (required) or if the fields contains correct format and values?

0 vote
Renjith Pillai Community Champion Sep 27, 2013

Srinivas, I would really go with Rambanam's suggestion. Take out the permissions for all for Edit so that the Edit button itself disappears. Then add a transition (global) by the name Edit and make it as the first one (in the workflow order) and that will solve the problem completely. You will have complete control over conditions/validators and post functions.

But wouldn't that ruin the 'e' keyboard shortcut?

I guess you cant have botgh as it is now. Is Atlassian considering consolidating the handling of issue operations such as create, edit and workflow transactions into a more coherent user experience?

As a user it is quite hard the first time to figure out that for instance create and edit are not the same as any other workflow transition.

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 ...

3,232 views 14 19
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