Working with Jira Dates

Rodrigo Xavier July 9, 2021

Good afternoon friends. I'm trying to work with dates inside Jira. I need to create an automation where tickets created on weekends (Saturday and Sunday) are assigned to specific people.

Basically my automation was like this;
Step 1 - When: Item createdCapturar.JPG
Step 2 - if: Item corresponding to JQL
"Request type" not in
(follows all my request types that don't fit the rule)
Step 3 - If: correspondence
{{issue.created.format("dd/MM/yyyy")}}
contains regular expression {{now}}
Step 4 - Then: Assign the item to
Member of the user list

But tickets are dropping as unassigned. Is something wrong with what I'm doing?

1 answer

1 accepted

1 vote
Answer accepted
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.
July 9, 2021

Hi @Rodrigo Xavier 

I am unclear how your conditions would find issues created on weekends.  You could try this instead with an advanced compare condition:

  • first value: {{issue.created.format("E")}}
  • condition: exactly matches regular expression
  • regular expression: (Sat|Sun)

Best regards,
Bill

Rodrigo Xavier July 13, 2021

Perfect my friend. Thanks a lot for the help. I will build the rule based on what you showed me. 

Like Bill Sheboy likes this

Suggest an answer

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

Atlassian Community Events