Hello - I am setting up a Project Automation Rule to send a daily email with a list of open issues with a specific criticality.
I tried to use the format highlighted in the webinar for the other week, but I cannot get my Issue Key to be hyperlinked.
When I use the below syntax I get a blank email
{{#lookupIssues}}
* <{{url}}|{{key}}>
{{/}}
When I remove the <> and use the below syntax I get an email that bullets out the full URL | then the issue key.
{{#lookupIssues}}
* <{{url}}|{{key}}>
{{/}}
I am trying to get it so the Issue Key itself is hyperlinked. Any ideas?
Try this one to produce a bulleted list of the values with the key hyperlinked:
Here is the list:
<ul>
{{#lookupIssues}}
<li><a href="{{url}}">{{key}}</a></li>{{/}}
</ul>
Best regards,
Bill
Thanks Bill - that worked. Any chance your able to explain the syntax to me; that doesn't look like anything I've seen in the help documentation (& definitely different from what they used in a Jira webinar I just watched...). Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Certainly, and I am glad it worked for you!
I used some HTML syntax to form the list:
You can search the interwebs for generic HTML documentation on building lists like this. For example, https://www.w3schools.com/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy, Apologies for the reply to a closed question, but I'm looking to do a very similar thing but can't seem to replicate your solution.
I'm trying to send the issue key which is hyperlinked to the issue URL, with the automation rule's trigger being a workflow transition.
I've tried the snippet of code above, plus several other variations within the email content text box, but it returned blank in an email, do you have any suggestions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy Never mind, I just had to remove the ul / li part and it worked! Sorry to bother you :D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Callum Carlile _Automation Consultants_ -- I am glad that worked for you. Those HTML list markups were to help when using Lookup so you can produce a list of issues. When you have just one item, no need for them.
__Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried copying the email text into the "Send a Slack message" action, however all of the HTML stuff is displayed as plain text... I'm wondering if it's possible to still be able to hyperlink the issue key to the URL, I don't suppose you have any experience with this have you? :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi! I do not have recent experience doing this, and I found two posts that show examples of formatting to get URLs to work. The first is just formatting info and the second shows the full set-up process steps.
https://support.atlassian.com/jira-core-cloud/docs/use-automation-with-slack/
https://blog.codebarrel.io/how-to-use-slack-messages-with-automation-for-jira-505b4de5de1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy
Apologies for the reply to a closed question, 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You may use the substringAfterLast() function to pull off the key from the text:
{{createdIssue.url.substringAfterLast("/")}}
That will get just the key. If you want to have that as a hyperlink in the field you would need to use a custom field which supports that type, and then supply both the key and url in the markup.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy
I Achieved first one, using a smart value {{createdissue.key}}, now i want make that output as to be converted as hyperlink.
tried various options but failed
Option 1: -- throws error (not able save automation)
<ul>
<li><a href="{{createdissue.url}}">{{key}}</a></li>{{/}}
</ul>
Option - : 2 --> output looks like same
<a href="{{createdissue.url}}">{{key}}</a>
Option 3 : --> output is <a href="">ATV-251</a>
<a href="{{https://[site].atlassian.net/browse/ }}">{{createdissue.key}}</a>
All cases are tested in both Text type, Paragraph type, url type.
Could you please guide me.
Thanks,
Raju
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Raju.
Most smart values are case-sensitive, so please try this one instead:
{{createdIssue.url}}
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--createdIssue--
Thanks,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Where are you trying to place that URL?
<a href="{{createdIssue.url}}">{{createdIssue.key}}</a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Bill Sheboy I have tried everything and all possible variations of your syntax but nothing seems to work. The email still returns blank with no values . Please Help !!!!
Use case : For each reporter , all the issues he has created without mandatory tags a consolidated email needs to be sent with jira links of all the issues.
Using issue.toUrl simply sends one email per issue ( ex 5 emails for 5 issues ) & #lookupIssues is also sending multiple emails with blank body
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When using the following :
{{#lookupIssues}}
{{issue.tourl}}
{{/}}
I'm getting one email per issue ( ex 3 emails for 3 issues)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Kunal Kumar
In general, it is a good idea to create a new question and link to older ones. Otherwise only the people following the old threads will see them.
Next thing, please post images of your complete automation rule, showing the details of the lookup issues definition, and of the audit log details showing the rule execution. Those will provide context and may explain the symptoms you are observing. Thanks!
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I will post a response with your new question: https://community.atlassian.com/t5/Automation-questions/lookupIssues-not-returning-any-values/qaq-p/2319022
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy
I try to add a specific URL link to my automation but it doesn't work.
How can I add this link?
for example: the result of the smart value {{issue.created}} will lead to www.google.com
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Hadar Dinte
I do not understand your question. Would you please explain the problem you are trying to solve? That may provide some context for the community to offer suggestions.
For example, if you are are trying to link to a web site in an email why not just put in the exact URL, as many email formats would automatically interpret that as a linkable reference?
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
For
<ul>
{{#lookupIssues}}
<li><a href="{{url}}">{{key}}</a></li>{{/}}
</ul>
I would like to also include the Summary of the issues in the hyperlink.
Is that possible?
Where should I add {{summary}} in that case?
BR, Matilda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Matilda Dahlström -- Welcome to the Atlassian Community!
You could do that by adding {{summary}} after the key, such as with:
<ul>
{{#lookupIssues}}
<li><a href="{{url}}">{{key}} {{summary}}</a></li>{{/}}
</ul>
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill!
Thanks. :-)
That worked!
Again thanks, and have a nice weekend.
BR, Matilda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.