Automation Rule needed to find if issue was entered during current work week.

John Block
Contributor
June 4, 2024

Hello, I am looking to create an automation for a service project that will determine if an issue was entered during the current work week.

The end goal is to adjust the Change Type field to "Emergency" if the Deployment Time\Date is within the current week.

If_field_needJQL.png 

I am having some trouble with Issue Fields Condition as I can't use the startOfDay() JQL function.

I have tried the following using the JQL condition 

"Deployment Time" < endOfWeek(-1)

Do I need to specify something further for the field potentially?

DeploymentStart.png

 

 

 

2 answers

1 accepted

0 votes
Answer accepted
John Block
Contributor
June 27, 2024

I used a JQL condition ""Deployment Date/Time" < endOfWeek()" to trigger the priority to set to an Emergency type.

 

The end results being that if someone submits a change request for the current week, additional approvals will be required and the type changes away from a Normal request.

JiraJQLRule.png

0 votes
Kalyan Sattaluri
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.
June 4, 2024

Hello @John Block 

Instead of Issue fields condition, you can choose If Condition -> JQL search and give your JQL there. 

Also, please share full screenshot of your rule to understand anything else which may impact your rule.

John Block
Contributor
June 5, 2024

Hello @Kalyan Sattaluri , I appreciate your response.

I've changed it to "if:Issue matches JQL" and have added the argument: 

"Deployment Date/Time" < endOfWeek(-1)

The goal being if the issue is created during the same week, it will add a specific approver and then change the type to an emergency request. It should also check if a certain category is selected and have a set list of approvers for those as well.

Automation_CR.png

 

 

 

 

 

 

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