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?
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi, do you need to check if the all the required fields are filled (required) or if the fields contains correct format and values?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.