Forums

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

Automation: edit issue field "Linked issues" in branch

Ilia Kebets October 7, 2024

Hello,

  1. I have a trigger on an issue in project A,
  2. then I create an issue on project B, in a branch of the automation as it is conditional.
  3. Finally, I want to link both the trigger issue and the one I created in 2. How Can I achieve this?

I do not want to set the field in the "create issue" action at 2 because it requires the "Linked issue" field to be in the "create" screen, which I don't want to pollute for users.

Using the "edit issue" action, the "trigger issue" is now referencing the newly created issue which is wrong (and returns an error).

Therefore, I have tried using the raw JSON input to update it like that, but it does not work:

```json

{ "fields": { "Linked Issues": { "is related to": "{{triggerIssueId}}" } } }

```

Here is a screenshot of the rule if this can clarify the context:
Screenshot 2024-10-07 at 12.25.42.png

1 answer

1 accepted

4 votes
Answer accepted
John Funk
Community Champion
October 7, 2024

Hi Ilia - Welcome to the Atlassian Community!

Instead of doing an Edit Issue for the linked issue field, just do an action for Link issues.

Ilia Kebets October 7, 2024

Hello John,

Thank you for the suggestion, but I tried the following and it looks like the action for Link issues did not perform anything.

It did not log an error as when I did it through the Edit issue action.

 

Screenshot 2024-10-07 at 13.47.53.png

Ilia Kebets October 7, 2024

Alright, I made it work by using the "most recently created issue" option:

 

Screenshot 2024-10-07 at 13.57.18.png

Like # people like this
John Funk
Community Champion
October 7, 2024

Great! Glad it is working!

Like Ilia Kebets likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events