Forums

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

Jira Automation - Out of Hours Support

Jared Giron
Contributor
May 15, 2025

I'm fairly new to JSM and Atlassian as a whole and have taken over as administrator at my company in the past 6 months.  I was having a hard time with trying to get this automation to work but was able to get it working after a lot of troubleshooting.  I figured I would post my results here as I'm sure I'm not the only one who was having issues. Excuse me if this was already posted here or if this was common knowledge.

Figuring out the day of the week

  • Work item created (or whatever trigger you choose)
  • Use an IF or ELSE: Add condition options block and the {{smart values}} condition
    • First Value: {{issue.created.format("EEEE")}}
    • Condtion: equals
    • Second Value: Saturday|Sunday (or whatever days you choose)

*NOTE: Make sure your Run actions if... is set to At least one condition matches; the "EEEE" text will output the day of week e.g. Monday, Tuesday, etc.

  • Add your action (comment, edit, etc.)
  • Optionally add a debug log via the Add value to the audit log action
    • Debug Values: Weekday={{issue.created.format("EEEE")}}, Current Time (SET YOUR TIMEZONE)={{now.convertToTimeZone("YOUR TIMEZONE").format("h:mm a")}}

Figuring out the time of day

  • In the Else-if section below that add your values
  • First condition
    • First Value: {{issue.created.hour}}
    • Condition: less than
    • Second Value: 8
  • Second condition
    • First Value: {{issue.created.hour}}
    • Condition: greater than
    • Second Value: 17
  • Add your action (comment, edit, etc.)
  • Optionally add a debug log via the Add value to the audit log action
    • Debug Values: Weekday={{issue.created.format("EEEE")}}, Current Time (SET YOUR TIMEZONE)={{now.convertToTimeZone("YOUR TIMEZONE").format("h:mm a")}}

*NOTE: The second value is 1 - 24 based on the 24 Hr clock format.

I've attached screenshots from my project for reference as well since I know that seeing how it's setup is a bit easier in some contexts.

outofsupporthours1.png

outofsupporthours2.png

outofsupporthours3.png

 

4 answers

1 vote
Susan Waldrip
Community Champion
May 15, 2025

Hi @Jared Giron , Welcome to the Community! We're glad you're here, and you're starting your journey with a contribution to this knowledge base -- wow! Good work on this and thank you for sharing it. I hope you'll find the Community useful, friendly, and willing to help you and learn from you!

0 votes
Susan Waldrip
Community Champion
May 16, 2025

Hi @Roger , sorry for the confusion I caused w/ using the term "knowledge base", I was referring to the online Community itself. There's so much information, how-to, troubleshooting, and other help already available in this Community and often you can search it to find what you need without even asking a question. And it's free! So it is a knowledge base and it's expanding all the time with contributions from members, it's just not usually referred to in that way. ☺️

 

0 votes
Roger May 16, 2025

@Susan Waldrip, where can I find the knowledge base?

The following is what I tried to answer my own question:
This contribution from Jared is posted in "JSM News & Discussions".
That sounds like a general discussion group and if knowledge was included in this group, I don't see a label that marks this as knowledge base-item.
1 level up (https://community.atlassian.com/forums/Product-Groups/ct-p/product-groups) i don't see a knowledge base group.

0 votes
Jared Giron
Contributor
May 15, 2025

@Susan WaldripThank you!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events