Forums

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

Automation help

Raju Mandapaka
Contributor
January 21, 2022

Can you help me with this format, we are cloning issues using automation and storing cloned value (key) in a url type custom field, so that user can use this link and go to cloned issue.

I am using a smart value as {{createdissue.url) which generates a lengthy url in that custom field.

Can you help me in such a way that only cloned key should be come in that custom field.

Eg: 

{{createdIssue.url}} generates https://abc.net/browse/ATV-237

my requirement is it should generate only ATV-237 and should be hyperlinked to its URL.

Thanks,

Raju

4 answers

1 accepted

2 votes
Answer accepted
John Funk
Community Champion
January 21, 2022

Hi Seetham,

Try this for the update to the custom field:

https://abc.net/browse/{{issue.Cloned By}}

0 votes
Mark Segall
Community Champion
January 21, 2022

Hi @Raju Mandapaka 

I have to ask why you're trying to use a custom field and generate a URL rather than setting your rule to generate a link between the two issues in the create issue action?

Raju Mandapaka
Contributor
January 21, 2022

Hi @Mark Segall 

That doesn't helps my requirement 

0 votes
Pramodh M
Community Champion
January 21, 2022

Hi @Raju Mandapaka 

For Hyperlink the field should support wiki formatted data so here are the steps

  • Create a Paragraph Custom Field which supports wiki format
  • Add the value as - {{createdIssue.key}}

Let me know if you have further queries

Thanks,
Pramodh

Raju Mandapaka
Contributor
January 21, 2022

@Pramodh M 

Its not working, if i use {{createdIssue.key}} it is generating only ATV-15 (not a hyperlinked one)

Pramodh M
Community Champion
January 21, 2022

@Raju Mandapaka 

Use the paragraph field which supports rich text and wiki format.

Thanks,

Pramodh

Raju Mandapaka
Contributor
January 23, 2022

Hi Promod,

I used same, but no result still showing as same (only key not a hyerplinked one

0 votes
Tim Perrault
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.
January 21, 2022

Hi @Raju Mandapaka 

You could try changing the custom field type to a text field and use {{createdissue.key}} smart value. That should return the key and Jira should automatically create a link if the issue exists in the system.

 

Thanks,

Tim

Raju Mandapaka
Contributor
January 21, 2022

Its not working, if i use {{createdIssue.key}} it is generating only ATV-15 (not a hyperlinked one)

Tim Perrault
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.
January 21, 2022

What type of field are you using and what renderer does that field use?

Raju Mandapaka
Contributor
January 21, 2022

HI @Tim Perrault 

I Used Text field single line and here is the answer stored (it is not hyperlink)

q.PNG

Tim Perrault
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.
January 21, 2022

@Raju Mandapaka

ok. It looks like @Pramodh M was correct and you need to use the paragraph type field. That field supports rich text.

 

The short text field only supports plain text. Sorry about that.

Like # people like this

Suggest an answer

Log in or Sign up to answer