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

Is it possible to get the comment url through Smart Values?

Jillian Marabut May 17, 2021

Is it possible to get the specific comment url through Smart Values? 

I'm working on an email notification when a ticket transitions to another status. Part of what I'd like to include in the content of the email is the link of the last comment made to the ticket.

Here's the query I'm using which isn't working: 

<a class="jsd-issue-link" href="{{issue.comments.last.url}}">Please follow this link for the hyperlink/s.</a> </li>

The text format in the email notification is coming out as expected, it's just that the hyperlink isn't working. When I hover to check what url is used, it appears to be empty. 

1 answer

0 votes
Mohamed Adel
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.
May 17, 2021

@Jillian Marabut 

according to Atlassian documentation , these are the only available properties 

  • {{issue.comments.last.body}} - Returns the body of the last comment.
  • {{issue.comments.first.body}} - Returns the body of the first comment.
  • {{issue.comments.reverse.body}} - Returns the issue's comments, in reverse order.
  • {{issue.comments.size}} - Returns the number of comments on the issue.
  • {{issue.comments.author.displayName}} - Returns the comment authors.

Jillian Marabut May 17, 2021

@Mohamed Adel Thanks! And yes, saw this too. Just a little curious since when you check individual comments it actually has its own url when generated. 

comment JIRA.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events