Forums

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

Automation based on comments

JayJuan Jones August 9, 2023

Hello! I am looking to put together an automation rule that would run when the Priority field has been changed from P0 to P1, P2, P3, P4, or Not Set and a user did not comment. The rule would add a comment stating XXX... I am running into issues on how to check the last comment date correctly. Any suggestions?

1 answer

2 votes
Kian Stack Mumo Systems
Community Champion
August 9, 2023

@JayJuan Jones

I'm struggling to find a way to do that as well. What are you trying to accomplish exactly?

Thanks,

Kian

JayJuan Jones August 9, 2023

I basically want to add a comment if the user changes the priority field without adding a comment

Kian Stack Mumo Systems
Community Champion
August 9, 2023

What are the parameters? If they change priority and don't add a comment within 1 minute? The issue is that outside of a transition screen they won't be able to add a comment and update the priority at exactly the same time.

JayJuan Jones August 9, 2023

I've tried that, I've tried if they change the priority and didn't add a comment 1 minute before the automation rule executed, I've also tried at time of execution and nothing works. 

So basically when you Edit the issue since you are editing the fields seperatly, its really no way for the automation to work. It could work on a transition screen though since  both fields would be updated at the same time. 

Kian Stack Mumo Systems
Community Champion
August 10, 2023

@JayJuan Jones

 

What I am seeing online indicates that the only way to get a comment date would be to write an automation rule that stores the comment date each time a comment is added. 

 

What you could do is write one automation to store the date when as comment is added.

Screen Shot 2023-08-10 at 10.01.21 AM.png

 

 

Then, write a second automation rule for when the priority changes:

 

Screen Shot 2023-08-10 at 10.01.32 AM.png

 

In this case, my condition is verifying that the comment was made in the last 2 minutes.

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