Forums

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

Automation, Ticket Assignment, 2 users

jude_alden
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 3, 2022

I need to setup automation where an issue that is created and unassigned gets automatically assigned to 1 person on MTW and another person on TFSS

 

This is as far as I have gotten and then get stuck . 

 

Screenshot 2022-08-03 094749.jpg

2 answers

0 votes
Trudy Claspill
Community Champion
August 3, 2022

Hello @jude_alden 

There are two problems with your rule.

1. The advanced compare condition is wrong.

2. The comparisons should not be combined. They need to be separated.

For the first point, credit goes to @Bill Sheboy in his response to this post.

Use this for the "First Value" field: {{issue.created.convertToTimeZone(issue.reporter.timeZone).format("E")}}

And for the regular expression you are trying to match use these values:

Mon Tue Wed Thu Fri Sat Sun

For the second point, you need to have just one of these comparisons in the IF condition for the MTW comparison and Assignee setting. Then add an ELSE condition to set the Assignee to the alternate user if the IF condition is not met.

Screen Shot 2022-08-03 at 10.10.41 AM.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.
August 3, 2022

Hi @jude_alden and @Trudy Claspill 

I recall my earlier post needed the time zone adjustment because the question asked about a Day and Time range test.  For your use case this may not be needed.  Thanks!

Kind regards,
Bill

0 votes
Mark Segall
Community Champion
August 3, 2022

Hi @jude_alden - You'll want to separate the two conditions into separate If/Else blocks.  So you'd have something like this:

  • IF CONDITION: {{issue.created.format("E")}} Exactly Matches Regular Expression #1
    • ACTION: Assign Issue to assignee #1
  • ELSE CONDITION: {{issue.created.format("E")}} Exactly Matches Regular Expression #2
    • ACTION: Assign issue to assignee #2

Suggest an answer

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

Atlassian Community Events