Forums

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

Automation Due Date more than 1 hours from start date

Erna Putri Utami
Contributor
August 7, 2022

how to make automation in Jira, due date is more than 1 hour from start date?

2 answers

1 accepted

1 vote
Answer accepted
Hana Kučerová
Community Champion
August 8, 2022

Hi @Erna Putri Utami ,

you should be able to use "Advanced compare condition", something like:

{{issue.customfield_xyz.diff(issue.customfield_abc).hours}}
greather than
1

(just replace xyz and abc with ids of custom fields or use their names) 

Erna Putri Utami
Contributor
August 8, 2022

thank you very much for your response, @Hana Kučerová Hana Kučerová. May I ask again? due date is likened to abc or xyz?

Hana Kučerová
Community Champion
August 8, 2022

@Erna Putri Utami 

If abc is earlier than xyz, the value returned will be negative. So, I believe it should be like this:

abc = due date

xyz = start date

Erna Putri Utami
Contributor
August 8, 2022

it works! Thank you for your help, @Hana Kučerová . I am very grateful. 

Like Hana Kučerová likes this
0 votes
Florian PEREZ [Valiantys Administrator]
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.
August 8, 2022

Could you please explain you case a bit more ? 

 

I think you want to make a condition on creation about the Due date poissibilities ( this is the only thing that make sens for me)

For this you'll need to get into a condition on creation step in workflow. You'll need to script it with script runner I think since I do not think this is possible to get such type of condition from scratch.

Hope this help 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events