Forums

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

CREATING AUTOMATION WEEKEND

RAMCEL MAGNAYE
Contributor
November 19, 2024

CAN SOMEONE HELP ME ON THIS AUTOMATION IM NOT ABLE TO GET THE SMART VALUE OF THIS CONDITIONS ;

 

TRIGGER : TICKET CREATED 

CONDITION : IF THE TICKET IS CREATED EVERY 6PM to 11PM AND THE DAY IS SAT AND SUNDAY 

 

ACTION : EDIT FIELD 

3 answers

1 accepted

2 votes
Answer accepted
Jehan Bhathena
Community Champion
November 20, 2024

Hi @RAMCEL MAGNAYE ,

You can try to use the "fullDate" format to get the current date and the date of the issue being created:

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/

Adding a snapshot below for reference of how it would look:

 

image.png

image.png

Along with this you can use the "shortTime" format to get the time as well for comparison later. I haven't tried out the comparison but in theory I would make something like this:

  • IF: "{{issue.created.fullDate.split(",").first}} == SATURDAY or SUNDAY"
    • IF: TIME CREATED > 6PM, <11PM
    • THEN: ACTION: Edit Field

 

RAMCEL MAGNAYE
Contributor
November 20, 2024

is this also giving the same result JIRA AUTO.png

Jehan Bhathena
Community Champion
November 21, 2024

Will have to test it out.

Try this, create a test ticket and update it's created date to Saturday after 6PM, Now run the Automation but only perform Log Action on success, and don't use the Now.FullDate to compare too since it will have to wait for the weekend. Hardcode the Weekend names for checking.

1 vote
Rebekka Heilmann (viadee)
Community Champion
November 20, 2024

Hello @RAMCEL MAGNAYE 

do you want the rule to run every hour between 6-11 on Sat/Sun
OR do you want the rule to run everytime an Issue is created but only between 6-11 on Sat/Sun?

RAMCEL MAGNAYE
Contributor
November 20, 2024

 run everytime an Issue is created but only between 6-11 on Sat/Sun this is the idea 

0 votes
Joseph Chung Yin
Community Champion
November 20, 2024

@RAMCEL MAGNAYE -

I agreed with @Jehan Bhathena suggestion.  Nice way of using smart value "fullDate" format.

Best, Joseph Chung Yin

 

RAMCEL MAGNAYE
Contributor
November 20, 2024

@Joseph Chung Yin  how abut this any thoughts ?JIRA AUTO.png

Like Jehan Bhathena likes this

Suggest an answer

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

Atlassian Community Events