Forums

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

In Automation, when triggering on sprint started, how can I edit a field

Cash Coyne
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.
January 9, 2023

I want to trigger an automation rule on a sprint starting. 

Then the action I want to take is to update a field in a specific issue (which I know the issue key at the time Iam building the rule and it won't change).  I see that I can take an action of Edit Issue Field, but it doesn't indicate which issue will be updated. 

How do I know which issue is updated based on a sprint started trigger?

How do I specify updating a field on a specific issue?

2 answers

1 accepted

2 votes
Answer accepted
Fernando Eugênio da Silva
Community Champion
January 9, 2023

@Cash Coyne 

 

You need to make a rule as follows:

Trigger: Sprint Started > Insert the board where the sprint has been started

BRANCH > JQL
At the JQL branch use: key = your_issue_to_be_affected

Inside the branch add and Edit Issue action and insert the field to be edit. So when a sprint is started on the board that you defined in the trigger, this issue that you put in the branch will have the field edited. See the image about the automation rule:

Screenshot_87.png

Hope this helps :)

Regards,

Fernando | Atlassian Consultant - OAT Solutions

Cash Coyne
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.
January 10, 2023

That worked!  Thanks!

2 votes
Vamsi Kandala
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.
January 9, 2023

Hi @Cash Coyne

Please try following these steps and check:

  • Select the 'Sprint started' trigger
    • It will ask for the 'Boards', choose one accordingly
  • Add 'New condition' as the component
    • Select 'JQL condition
      • Provide the JQL query mentioning the issue key
  • Select 'New action' as the component
    • Select 'Edit issue'
    • Select the appropriate field(s) to edit

Attached the screenshot here:

Rule.png
Hope this helps.

Thanks,
Vamsi

Cash Coyne
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.
January 10, 2023

Hi @Vamsi Kandala , when I try that, I get this error:

  • The rule has been configured with components that require issues to be provided by the trigger. To run these components you must add a branch for this sprint or JQL. The following components require issues: JQL condition, Edit issue

And that's using this condition:

key = JPRJ-103

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