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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

{{issue.key}} link instead of full link {{issue.url}}

Hi everyone!
I made an automation rule and seem to have set everything up, but displays the full address of the link. How to make it output but only as a {{key}} link.

2 answers

0 votes
Alexis Robert Community Leader Feb 17, 2021

Hi @Alexander , 

 

I think using this simple HTML code should do what you want : 

 

<a href="{{toUrl}}">{{key}}</a>

 

Let me know if this helps, 

 

--Alexis

Hi @Alexis Robert ,

Thanks for the answer.
This doesn't work for Url Field:
throws an error: Not a valid URL (customfield_10119)

And if I try to output to: Text Field (single line).

returns: <a href="https://xxxxx .atlassian.net/browse/ID-126"> ID-126 </a>, no link

Alexis Robert Community Leader Feb 17, 2021

I though you needed this for an email notification, if it's a custom field then can you please let me know what type it is ? 

as mentioned above, I tried to output to two different types of fields:
1. Url Field
2. Text Field (single line)
Custom fields .jpg

0 votes
John Funk Community Leader Feb 17, 2021

Hi Alexander  - Maybe try this:

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

Hi @John Funk ,

Not. throws an error: Not a valid URL (customfield_10119) for a URl field.


And for "Text Field (single line)" returns: <a href="https://xxxxx .atlassian.net/browse/ID-126"> ID-126 </a>, no link
test parent link.jpg

John Funk Community Leader Feb 17, 2021

What is the value in that field?

in what field?

John Funk Community Leader Feb 17, 2021

In your custom field that you want used through Automation

If I use smart valie {{issue.url}} for a custom field type url, I get the following:

test parent link.jpg


And I just need to display ID-126, as a link to the linked task.

John Funk Community Leader Feb 17, 2021

What is the actual value stored in the field?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,071 views 8 28
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