Forums

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

Auto reject request if created date less than 48h

Nguyen The Anh May 19, 2020

Hi, 

In my service desk I want to create a request portal where sale can booking a meeting with presale. But I want to create automation reject request if create request date less than 48h with booking date.

In portal, I have field "Meeting Date/Time" type Date time pickers. In automation what condition I need to create for this case?

Thanks,

1 answer

1 accepted

0 votes
Answer accepted
Patricia Francezi
Community Champion
May 20, 2020

From automation, you can use JQL to match your custom dates, but the solution i found is not the best to measure this. 

The function now() doesnt accept informing the time comparinson so, I would do an approximate comparison by using startofday()

https://support.atlassian.com/jira-software-cloud/docs/advanced-search-reference-jql-functions/#Advancedsearching-functionsreference-startOfDay

This JQL would search for the dates in the field (used due as example) from the startofday of ticket creation (its midnight for this function).

duedate <= startOfDay("48h") and due >= startOfDay("-48h")

The limitation is that its not the "48h" from ticket creation. 

 

The other way is using add-on that let you to compare dates and so on.... 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events