Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,359,774
Community Members
 
Community Events
168
Community Groups

Adding "Linked issue" automatically

Hi community..

 

I recently started using Atlassians app "Automations for Jira", and I read a lot about it, read the user cases etc., but I can't figure out how to do this:

 

I want to create an automation that will add a specific "relates to" linked issue, to all new issues that matches my JQL.

 

So whenever a new Epic is created, in a certain project and with certain details, it should automatically link that new Epic to a specific issue, e.g. TST-1350.

 

I have attached the screendump that I'm working on, and in the description it says "You can link to the issue that triggered this rule, previously created issue, a smart-value or simply an issue key.". But as you can see in the dropdown (attached screendump), theres only the first two mentioned possibilities.

I also tried working with JSON, to see if I could get it to automatically add a linked issue to that certain issue I mention above. But I'm not into coding, so that didn't work out.

 

Can anyone help me with either how to selecting which issue key it should link to, or to write JSON code that does the trick?

 

Thanks in advance!

Automations for Jira.png

1 answer

1 accepted

1 vote
Answer accepted

Hi @Steffen Vester I believe you should be able to simply type an issue key into that field. When you begin typing, the dropdown item will change from a pre-filled suggestion to "Create new {{issue key}}". 

Let me know here if that works out.

Also, if you're thinking that the "create new" label is a confusing, I agree. I'll look into getting that changed to something clearer. 

@wwalser woooow thanks, that was easy. I didn't realise the field was an input field. I tried so many different things and methods, so yeah it could be clearer :)

 

Thanks a lot.

Like wwalser likes this
wwalser Atlassian Team Jun 30, 2020

https://codebarrel.atlassian.net/browse/AUT-1979 Tracks the field label clarification.

@wwalser perfect!

 

Now that I found an expert, can you tell me if it's possible to edit an existing "linked issue" value rather than creating a new one?

 

So if I in an automation rule that say when a new issue is created, allways link it to Issue A.

When the issue transitions to status "Done", then link to issue B instead. I don't want to create a second issue link, I want to edit the existing issue link to a new value.

Do you know if this is possible?

Thanks in advance

Instead of "editing" the issue link, you'll probably need to use two separate actions on the automation. One to delete the old link (A) and a second to create the new link (B).

Like Steffen Vester likes this

Off course. Thanks

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Atlassian Automation

Jira Automation: Sum Up Story Points Roundup (Initiatives -> Epics -> Story/Tasks -> Subtasks)

Hi Everyone, In this roundup we combine all the jira automation rules to sum up story points across different issue types. We start from the lowest level, summing up story points from sub-tasks t...

3,098 views 10 9
Read article

Atlassian Community Events