How to update sprint value in linked task of company managed project
Asked by Marsha Miller:

I'm trying to create a global automation rule that updates the sprint field in a company managed project whenever the sprint field of a linked issue in a Team Managed project is updated. Here is the automation I created, but it is not working. Does anyone have a solution?

![Automation Rule.jpg](/t5/image/serverpage/image-id/320637iC0DCBD86BF8ECCBD/image-size/large?v=v2&px=999 "Automation Rule.jpg")


Answers:
author: Marsha Miller
body: ![2024-04-27 20 16 16.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/320949i09860F2E575DCF95/image-size/large?v=v2&px=999 "2024-04-27 20 16 16.jpg")


author: Michel Neeser
body: Hi [@Marsha Miller](/t5/user/viewprofilepage/user-id/4537029)

Just looking at the rule sequence, this looks correct. Did you check the audit log of the rule for any errors? If this does not solve the problem, can you share a screenshot of the configuration of the "Edit issue fields" action with us?

comments: author: Marsha Miller
body: The rule thinks it's working; the audit log shows success.

![Screenshot 1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/320810iF7F014814DB72621/image-size/large?v=v2&px=999 "Screenshot 1.jpg")

In the instance above, I changed the sprint of Dev-8665 with the expectation that the Sprint field of INSPIRE-33 would update. The audit log indicates that it did, but when I edit INSPIRE-33, nothing has changed.

For reference, this is the field I'm looking at in INSPIRE-33:

![Screenshot 2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/320811i52B602F30AE59E9E/image-size/large?v=v2&px=999 "Screenshot 2.jpg")

Re "can you share a screenshot of the configuration of the "Edit issue fields" action with us". Can you tell me where to find that?


author: Michel Neeser
body: [@Marsha Miller](/t5/user/viewprofilepage/user-id/4537029)
> Can you tell me where to find that?

By this, I meant the configuration displayed on the right side of what is shown on your original screenshot. So basically a screenshot of the entire rule window, while the "Edit issue fields" action is selected.


author: Michel Neeser
body: [@Marsha Miller](/t5/user/viewprofilepage/user-id/4537029) I see in your screenshot that your rule copies the sprint from the *current issue* . This means that the sprint basically gets copied from the linked issue to the linked issue, so nothing happens. This is because if you use *current issue* in a branch of a rule, you're referencing the current issue of the branch -- and this is the *linked issue* in your case.

To solve this, you just have to choose "Trigger issue" in the action. This will copy the sprint value from the actual issue which triggered the rule:

![SCR-20240428-oedi.png](https://community.atlassian.com/t5/image/serverpage/image-id/320971i1B93776CB90D6304/image-dimensions/441x262?v=v2 "SCR-20240428-oedi.png")


author: Marsha Miller
body: \<3 Thank you!!!!!


author: Michel Neeser
body: [@Marsha Miller](/t5/user/viewprofilepage/user-id/4537029) Glad if it is working now! Please consider accepting the answer, maybe it is helpful for others as well. Thank you! :-)


Tags: cloud

jira

jira-software-cloud