In Jira Cloud, I have a custom field that is date type (no time) and I have two transitions in a workflow which we do *not* want to display to the user if they are not allowed based on a condition. A validator would not be appropriate in this situation, because it does not hide transitions. What are the available dynamic options available for Value Field condition in workflows?
For example, we'd like to set a condition on each transition:
My Date (custom field) = Today's Date
and
My Date (custom field) > Today's Date
I've seen values being used under the "Value" field below such as "%%CURRENT_DATE%%" or "{{now.JiraDate}}" or "{{now}}", none which have worked. I can't seem to find any reference to these anywhere in Atlassian's documentation.
Can anyone point me in the right direction on this?
Regards,
James
Hi @James Paniagua - I don't know that it's possible to perform a condition based upon a relative date.
However, one option could be leveraging a custom field where you use a scheduled, daily automation rule to populate it based upon the date parameter. Then have the condition verify validate that the field is not empty.
Hi @Mark Segall
This is a great workaround, thank you! I think I will have to use this method for a lot of things like this in Jira Cloud.
Regards,
James
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm wondering. Is this still an accepted solution? With the cost of automation now a factor, I find it hard to believe we can't use a relative compare in a workflow condition, but we can in workflow validation?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bryce,
This solution has been working well for me so far. Have you tried it? What cost are you incurring from the automation job? It should be a single project-level automation job which shouldn't count against your limit.
Best regards,
James
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Anyone has any solution for this?
It would be great help if someone has found any solution for this...!!!
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
can you try with this
now
without the curly bracket or
new Date()
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.