Hi people. I hope you're Ok.
I need to make that If issue is Approved can be Cancelled only if the date when transition to Cancelled is before to Start Date (or the same a custom field called Fecha de Inicio)
Example.
Issue Fecha de Inicio 08/07/2025
Due Date = 10/07/2025
User can transition issue from Approved to Cancelled until 07/07/2025
I was trying with workflow validator but without results.
Documentation suggest using "now" or "Ahora" in spanish but transitioned shows expression error.
Thanks in advanced!
Hello @Alejandra Martin
Please provide a link to the documentation you are referencing.
Also please provide a screen image showing the Validator you created and the expression you used.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Alejandra Martin
Thank you for the additional information.
What is the exact error you are getting?
Can you provide a screen image showing the error?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Trudy. I made some changes and transitions with validators work OK. See message. I would like to show message more clear to the user than. How can do it? personalize message showing to user when transition failed?
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Alejandra,
With that Validator there is no option to customize the message.
A similar check might be possible with another validator that does support customizing the message. Can you provide a screen image showing the list of Validators available to you?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Truddy. Thanks for your helpful!!!! I think is not possible define a custom validator not? This is that are available for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The reason I asked for the list of Validators was to see if you might have any non-default validators available based on having third party apps added to your instance. You do not. The list shows only the default Validators available natively from Jira.
Some options you can consider to meet your requirement:
1. Remove the validator. Let the transition be executed. Use an Automation Rule to detect that the transition happened, review the current date compared to your custom field, reverse the transition if the compare is not favorable, and send a custom email to the user to let them know that the transition was reversed.
2. Consider a third party app that will add more options for Validators, finding one that adds a validator that will meet your requirements of doing a date comparison and being able to customize the message displayed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Trudy, I'will try with an automation Rule that you mentioned.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Trudy. I've decided use validation only, but i have another requirement, that is, if i use this validation, its ok but some of the role needs to transition to cancel. Is there a way to make an exception to this validation on the transition? Or a condition that validation applies only for the reporter?
Clarifying. Reporter can transition to canceled validating that Fecha de Inicio greater than now, but Approver should make the transition.
Thanks!!!!!
Ale
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
With only native functionality you cannot built conditions into a Validator.
What you would need to do is create multiple Transitions to the Canceled status, and use Workflow Conditions to determine which users can execute which transitions.
For instance
Transition #1 to Canceled would include the Validator to do the date comparison. It would also include the Condition "Only Reporter Condition" if the validation is required only when the Reporter executes a transition to Canceled. This transition then is only visible/selectable by the Reporter.
Transition #1 to Canceled would not include the Validator. To allow only the Approvers to use this transition you would add the condition "User is in custom field" and specify the field that contains the Approvers for the issue. This transition then is only visible/selectable be people specified in that field.
You also have to ensure that there are not other Transitions to Canceled available unless you apply Conditions to those also to limit who can use them.
In addition to the above you need to consider if there are any other people that should be to transition the issue to Canceled, such as Project Administrators, members of user groups or members of project roles where those users are not going to be the Reporter or in your custom field that identifies Approvers If so, you may need additional Transitions defined to allow them to change the status to Canceled, or modify the Conditions of the above two Transitions to ensure they can use the appropriate one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Trudy, casually i was trying with that option. I began to make a new transition with other. I didn't know that more than one transition was allowed between same status.
Thanks!!!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You're welcome, @Alejandra Martin
If the answers I posted helped you achieve your goal, please consider clicking on the Accept Answer button directly above my initial reply.
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.