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,293,865
Community Members
 
Community Events
165
Community Groups

How to set hyperlink in Jira Automation and Post Function

Hi,

There is other way than this: 

  • <a href="{{issue.toUrl}}">{{issue.key}}</a>

for use the hyperlink of an issue?

For example I have an issue that have an Epic Link with another Issue, is possible to use the hyperlink for the epic and not only for the children issue? I have tried in this way:

<a href="{{issue.fields.customfield_10014.toUrl}}">{{issue.fields.customfield_10014}}</a>

but it doesen't work

 

P.S: customfield_10014 is the epic link of the issue

1 answer

0 votes
John M Funk Community Leader Feb 22, 2021

Hi Erika,

I have not tried that before, but maybe try this:

<a href="{{issue.toUrl}}">{{issue.customfield_10014}}</a>

Also, you do not need to tag adaptavist for Automation posts in Community is it is a different too. 

Can I use this way to insert the hyper link in a String into a script?

at the end of the script I insert the String in a text field of an issue and an Automation send an email with this customfield in the body of the mail

something like that:

def text = "for the issue <a href="{{issue.toUrl}}">{{issue.customfield_10014}}</a> you have to do......"

how to do something like that?

John M Funk Community Leader Feb 22, 2021

I am not exactly sure of what you are expecting the output to be, but, yes, you should be able to do that - give it a try and see how it goes. 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

226 views 0 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you