Forums

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

Want to enter issue key on JSD request form text field and have the new issue linked

Trevan Householder_Isos-Tech-Consulting_
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.
April 23, 2020

How can I link to an issue in the following scenario?

On a Jira Service Desk request form in the portal I have a text field where I enter the issue key.  We want to link the new issue to that issue key that was entered in the text field.  I'm sure this can be done with Automation for Jira but I haven't been able to figure out how to do it.

 

My IF condition is working but the action isn't.  Here's what I've tried unsuccessfully:

2020-04-23_15-47-25.png

 

The error:

 

2020-04-23_15-49-31.png

 

Any ideas on how to get these issues linked up?

Who has the ninja skillz?

 

@John McKiernan ?

2 answers

1 accepted

0 votes
Answer accepted
Mohamed Benziane
Community Champion
April 24, 2020

Hello @Trevan Householder_Isos-Tech-Consulting_ 

Can you use the smart value {{fieldChange.toString}}.

automation.pngI tried this and it's working fine

Trevan Householder_Isos-Tech-Consulting_
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.
April 27, 2020

@Mohamed Benziane , Are you using this to link to another issue?  It appears from your example that you're not linking to anything.  What does the example you've provided actually do?

Mohamed Benziane
Community Champion
April 28, 2020

I created a customfield where i entered my issue key. Then i link my issue to this issuekey, to get the value of this field i use the smart value {{fieldChange.ToString}}. My trigger is when this field is updated i create the link.

Trevan Householder_Isos-Tech-Consulting_
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.
April 28, 2020

@Mohamed Benziane gotcha.  That's actually not what I'm trying to do.  I also created a custom field and when I enter an issue ID into that field on an issue, Jira creates a link for it automatically, but that's not what I'm reaching for.

Here's further info about the use case:

User creates a new request and wants to use a custom field on the request form to link it to another request that was previously created.  

When the user enters the related ticket id into that custom field and creates the request, I want to use Automation for Jira (if possible) to link the new request with the issue referred to in the custom field.

In this way, it should be a two-way link (otherwise it would only be a one-way link).

Trevan Householder_Isos-Tech-Consulting_
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.
April 29, 2020

@Mohamed Benziane You nailed it!  I finally figured out that I just needed to change my trigger to use the same issue field updated and then Automation for Jira knew that the field updated was the issue to link.  Works like a charm.  Thanks!

Amit Shaw August 8, 2023

Hi Trevan,

Can you please explain how it works ? I also want same things in my JSD ticket where user added a issue link in one custom field and once they click on create issue then that custom field issue link will automatically link to JSD ticket. 

How it is working ? Please help me to understant. 

0 votes
Trevan Householder_Isos-Tech-Consulting_
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.
April 23, 2020

Originally posted additional info here, but moved to my original post, above.

Suggest an answer

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

Atlassian Community Events