Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×I tried but it doesnt work.
after config the approval function, when approver click the approve button, the status will change without doing validator checking.
It would have been much easier to help you if you could give us some information.
Is this Apporve button a workflow transition?
Can you please show us your code?
Thanks!
Shaakunthala
the approval is set in the status,
the validator is set in the transition(IT approved).
However, the validator doesn't work. Jira ignores the validator.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is new to me, as I haven't used ServiceDesk.
I tried to re-create your problem, and instead of a simple validator I used a script validator.
After approving a test issue, validator status was still shown as "Has not run yet.", which means JIRA bypasses validators in case of approvals.
So, the answer to your question is No. A workaround may be possible - but there will be compromises.
Shaakunthala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you try using a condition instead of a validator?
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.
Although approvals and workflow transitions look visually similar to the end user, JIRA internally organizes approvals in a different way (meta data tags in workflow XML rather than action). I think this gives an indication that conditions and validators won't work here.
What you can do here is, forget approvals feature and create your own transitions called Approve/ Decline. If you have Script Runner add-on you can write a custom validator for 'x number of approvers' feature too.
Thanks.
Shaakunthala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But I want to let the approver receive email to notify him to approve. the approver is set by the customer using custom field.
How can i do that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Anyone still encountering this, you may want to vote on: https://jira.atlassian.com/browse/JSDSERVER-6342
My experience is that JSM approvals ignore all Conditions and Validators.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm hitting that wall ight now myself. The only thing I can see to do if I still want the Jira generated email telling user to approve or decline. Is to have another node after the approval that then transitions to the actual status I want the accept or reject to end up at. Seems really inefficient and not intuitive.
I want my approve/decline choices to go to Closed status with either approve or declined resolutions, but only if certain custom fields have been filled in. Bit now I have to either force them to enter these fields earlier than they may want to (before getting to approve/decline status) or add this dummy status after the approval status that allows me to have a validation and transition screen.
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.