Value Field Condition in Jira Cloud

James Paniagua March 30, 2022

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.

2022_03_28_13_26_19_Add_Workflow_Transition_Condition_Jira.png

Can anyone point me in the right direction on this?

Regards,

James

3 answers

1 accepted

1 vote
Answer accepted
Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 30, 2022

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.

James Paniagua April 1, 2022

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

Like Mark Segall likes this
0 votes
Kaviraj Kyatam
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 7, 2024

Hi,

Anyone has any solution for this?

It would be great help if someone has found any solution for this...!!!

Thank you

 

0 votes
Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 30, 2022

Hi,

can you try with this

now

without the curly bracket or

new Date()
James Paniagua March 30, 2022

I've tried this with no avail.

Suggest an answer

Log in or Sign up to answer