Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JIRA Workflow validatior with date compare against system variable

Duane Nagata November 16, 2016

I have a workflow where I am comparing a custom field date and want to display an error message if the field CM Start Time is less than 48 hours from the current time.  In my example below, I cannot figure out what the expression to compare  cfValues['CM Start Time']  to.  Can anyone assist?

 

cfValues['CM Type of Change'] == 'Standard' && cfValues['CM Start Time'] < now("-48h")

3 answers

0 votes
Kian Stack Mumo Systems
Community Champion
November 16, 2016

You should be able to install "JIRA Suite Utilities", a free plugin for JIRA. This includes several new validators. One of those is the "Date Expression Compare". Using this validator, you can restrict it like this: 

Screen Shot 2016-11-16 at 11.47.21 AM.png

0 votes
Duane Nagata November 16, 2016

Yes I am. 

0 votes
Kian Stack Mumo Systems
Community Champion
November 16, 2016

Are you using workflow validators? 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events