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,555,139
Community Members
 
Community Events
184
Community Groups

Automation for JIRA - Linking issues

How to write setup in Automation for JIRA plugin
that when creating Issue and depending on certain value 
automation should create new task and link them.

 

I have managed to create the new task based on certain value, but
I am unable to link the tasks. 

 

In audit log i get this error:

Unknown fields set during create, they may be unavailable for the project/type. Check your custom field configuration. Fields ignored -Linked Issues (issuelinks)

 

I have link issue field on create form so this should not be the problem. 

2 answers

Add "Linked Issues" to the "Create Issue Screen" (Jira Settings > Issues > Screens) that is being used.

Hi Derek I have same problem unfortunately this did not help.

for any future visitors, this solved our problem. Thanks 

Like # people like this

I have done this but it is not working. Screen Shot 2021-02-18 at 4.17.41 PM.png

Can confirm that this solved the problem for me. Thanks Derek!

Like Derek Kelsheimer likes this

Yes, linking also works fine. 

Like Derek Kelsheimer likes this

Also worked for me!

Like Derek Kelsheimer likes this

Worked for us. Thanks!

Like Derek Kelsheimer likes this

Worked. Thanks!

Like Derek Kelsheimer likes this

I have an automation step in JSM to create a new story in another Jira Project.

I select 8 fields to set including Linked Issue but that renders as above with 2 fields to enter and there is no "created by" entry for the top field.

I must admit I don't understand why there are 2 fields to enter for linked issues when you are already operating on creating the in situ issue and just want it linked to the trigger.

The drop down for Linked Issue has 100+ entries in it but alas no "created by"

@Marc Isikoff For each linked issue you have to set a description and the issue it links to. That's what the two fields are for. So the "created by" is the description option you select and then the second field is the actual issue key you are linking to.

There are also two descriptions for each linked issue type. The outward description and inward description.

Hopefully, this example helps illustrate it a little better. Let's say you have issue A (KEY-1234) you are trying to link to issue B (KEY-9876) saying that B is created by A. When you link the two together the different descriptions help properly label each issue depending on where you view it. When viewing issue A, it could read "created KEY-9876", but then on issue B it could read "created by KEY-1234".

"Created by" is not an out of the box option though, so you would have to add it in the Issue Liking section in the system settings.
Settings > Issues > Issue linking

Derek,

Thanks..so I need to create a couple different linked issue types that I can use.

I have limited permissions so requested those.

@Marc Isikoff Creating the issue linking name and inward/outward descriptions is a one item addition. Once you have the "created by" added, then you can use it over and over again.

"Trigger issue" is the correct one to use as well.

Below is an example of how we use it in automation using the "create new" action. When B is created it grabs the key from A since A is the issue that triggered the automation.

linking-automation.png

Also solved the issue I was having, thank you!

0 votes
Ben Poulson
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.
Mar 01, 2019

Is the linked issue being created by a script, or with an add-on (JSU or something)?

It is created by  Automation for JIRA plugin

Did you configure the Choose fields to set on the Create issue step?

This is what I had forgotten to do set the linked issue field in the automation step of creating an issue.  Thanks,  @Milo Grika. This solved my problem.

Suggest an answer

Log in or Sign up to answer