Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,558,462
Community Members
 
Community Events
184
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
wwalser
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jun 29, 2020 • edited Jun 30, 2020

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
Atlassian Team members are employees working across the company in a wide variety of roles.
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

wwalser
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jul 01, 2020 • edited

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
AUG Leaders

Atlassian Community Events