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

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

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

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.

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

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 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,233 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