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

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

JSON-parameterized URL link in email action of automation rule

I need to include a JSON-parameterized URL in the body of an email action to pre-fill a web form. I can successfully create the link text and send the email but if I attempt to wrap it in an HTML link tag, the resulting URL is missing the parms.

Here's what I need the URL to be ... and if I copy/paste that in my browser, it works fine:{"JiraIssueKey":"OT-1"}

This is what I have in the email body field in the automation rule. This generates a valid URL (as above) in the resulting email, but is not a hyperlink:{{issue.key.asJsonObject("JiraIssueKey")}}

This is what I get if I wrap that in an HTML link tag in the body field of the automation rule:

... which is obviously a complete fail.

I've made various attempts at wrapping the whole thing ... HTML link tags and all ... in something like




 to no avail.

I'm assuming the answer is in the appropriate syntax to both allow for the use of smart values and link encoding, but I'm clearly out of my depth at this point and I'm hoping you smart folks can point me in the right direction!

Thanks in advance.

1 answer

1 accepted

0 votes
Answer accepted

@Andreas Knecht@Simmo : Any chance either of you can point me in the right direction with this?

Hey @Rick Crow ,

Can I get you to tag questions with just automation? We're moving away from the old codebarrel one so these questions can get missed! Like so:


As to your question, could I get you to include some screenshots of how you've configured your rule, including the action you're having trouble with atm?



@Simmo Got it.

Heres the screenshot: 80D25ABC-AA3A-4FBB-95FA-17CD253E98B3.jpeg

Simmo Atlassian Team Aug 04, 2020

Hey @Rick Crow ,

Assuming that you haven't changed the email format away from HTML in the "More Options" section, the first thing I'd try doing is:

<a href="https://www.etc...entry={{issue.key.asJsonObject("JiraIssueKey")}}">name of the link here</a>

You'll need to fill in the rest of your URL, but you get the idea. Put your link in the hef and then give it a name. That'll style it as an actual HTML link and hopefully remove some issues. See how you go with that and let me know.



@Simmo Yes, I've tried that ... see my original post for the result ... which looks like this:

For some reason, everything beyond the first curly brace is getting clipped.

Simmo Atlassian Team Aug 06, 2020

Hmmm okay @Rick Crow . Best thing to try now is to take a step back and add the log action. Then put your smart value in there and provide a screenshot of the output. Lets check what your smart value is doing.

The other thing to try, which might seem rather whack is this:


 Try that inside the <a href.... suggestion. It'll encode it to go in a URL and so will look funny but the receiving service should understand it.

@Simmo Bingo! We have a winner. Your last suggestion works ... thanks!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

104 views 1 7
Read article

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