Forums

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

Trigger Jira rule as soon as 1st comment is posted in opensprint

Keshav July 20, 2023

Hi,

I am trying to create an automation rule to change the status of Jira issue from To do to In Progress, as soon as 1st comment is added to the Jira issue after moving to sprint.

Background: Developers usually start working on an issue, without moving them to In-progress. So, rule should trigger only when the 1st comment is posted on the issue after it has been moved to the sprint. 

For eg. The issue is present in the backlog has 2 comments. Then it moves to sprint and then a comment is added (first comment after it moved to sprint, otherwise comment#3), this is when the rule will get triggered and will move the status from InProgress to ToDo.

1 answer

1 accepted

0 votes
Answer accepted
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.
July 20, 2023

Hi @Keshav 

First thing, this may be a learning opportunity for the team, helping them understand the board is a tool to help them manage work.  And so moving items as they are worked upon helps everyone.

Back to your question: I recommend a simpler approach to focus on what is happening now.  For example, if an issue is commented upon, is in the open sprint, and is not in progress, transition it.  There is no need to look at earlier comments.

Perhaps something like this:

  • trigger: issue commented
  • JQL condition: on the issue
    • statusCategory = "To Do" AND sprint IN openSprints()
  • action: transition the issue

Kind regards,
Bill

Keshav July 24, 2023

Hi Bill,

Thanks for the response!

I agree, this is a simpler approach and it worked, thanks!

 

Thanks,

Keshav Jha

Like Bill Sheboy likes this

Suggest an answer

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

Atlassian Community Events