Forums

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

Automation for Jira - Date field as a condition

Nofar Ben Kereth
Contributor
November 18, 2020

Hey!

 

I want to edit a date field with the current date when an issue transitioned to a specific status. But I want to limit this action for only issues that this field is empty for them. I couldn't find the date field in the Issue Fields Condition. 

1 answer

1 accepted

0 votes
Answer accepted
John Funk
Community Champion
November 18, 2020

Hi Nofar,

Can you share the rule that you have so far? 

Nofar Ben Kereth
Contributor
November 18, 2020

Sure, basically I want to make sure this date doesn't change if someone changes the Bug Severity value.

Screen Shot 2020-11-18 at 18.26.35.png 

John Funk
Community Champion
November 18, 2020

So you want to add another condition after the first condition for when the Severity Timestamp is empty. Correct? But you don't see that field in the list? 

Nofar Ben Kereth
Contributor
November 18, 2020

Exactly

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 18, 2020

Hi @Nofar Ben Kereth 

Have you tried using the advanced compare condition and check the field using the smart value:

{{issue.Severity Timestamp}}

Best regards,

Bill

Nofar Ben Kereth
Contributor
November 18, 2020

I did but didn't manage to 'compare' it to 'Empty' 

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 18, 2020

Would you please post an image of your advanced compare condition?  That may help uncover what is happening.  Thanks!

Like # people like this
Nofar Ben Kereth
Contributor
November 24, 2020

Screen Shot 2020-11-19 at 9.52.37.png

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 24, 2020

Thanks, @Nofar Ben Kereth 

Let's try a diagnostic check:

Immediately before the advanced compare, please add a Log action to put the Severity Timestamp in the log.  That will show what's in the field, and if the Smart Value is recognized.

If that works, there may be an issue with the empty comparison, so you could instead try greater than zero (0), because a timestamp is just a numeric.  That would mean it is essentially "not empty".

__Bill

Nofar Ben Kereth
Contributor
November 26, 2020

Its seems that the '0' helped. Thanks!

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events