The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

Jira Automation Smart values

Whisley Santos
August 17, 2020

Hi guys,

I am trying to implement Jira Automation so the whole team receives an e-mail when an issue is created. I managed to get things almost right but the result looks a bit amateur.

I have been exploring all the docs under https://support.atlassian.com/jira-software-cloud/docs/smart-values-general/ and got almost everything replicate from a normal Jira Ticket.

[JIRA] {{issue.key}} {{issue.summary}}

Description: {{issue.description}}
Issue Type:   {{issue.issueType.name}}
Assignee:      {{issue.assignee.displayName}}
Priority:         {{issue.priority.name}}
Created:        {{issue.created.format("dd/MM/yyyy hh:mm")}}
Reporter:      {{issue.reporter.displayName}}
URL:                {{issue.toUrl}}

 

I am trying to figure out the date because it is showing US time instead of Australia.
But, I would be truly happy to make the avatar to work so things look more professional

So under https://support.atlassian.com/jira-software-cloud/docs/smart-values-users/ you have:

{{assignee.avatarUrls."48x48"}}

 

When receiving the e-mail, all I see is its URL instead of the avatar picture itself.
How to make it works?

This is the desirable result:

Assignee:      {{assignee.avatarUrls."48x48"}} {{issue.assignee.displayName}}
Reporter:      {{assignee.avatarUrls."48x48"}} {{issue.reporter.displayName}}

 

Do I need to add HTML, JSON parameters or something like that? Or am I missing something?

Thank you

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Bill Sheboy
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 Champions.
August 17, 2020

Hi @Whisley Santos 

For the date, please try converting the time zone before formatting:

{{issue.created.convertToTimeZone(reporter.timeZone).format("dd/MM/yyyy hh:mm")}}

This example uses the Reporter's time zone, but you could hard-code it if you wish.

 

Regarding the avatar images, doesn't look like that is possible.  There appear to be suggestions in both the public JIRA Cloud and the automation backlogs to add this.

 

Best regards,

Bill

Whisley Santos
August 17, 2020

@Bill Sheboy,

Thank you for your reply. I am unable to test that because of "Error sending email:Daily message quota exceeded. (Service: AmazonSimpleEmailService; Status Code: 400; Error Code: Throttling; Request ID: 80aea197-e0ca-4817-8f92-76966d99b2cd)"

I am creating a user with a group e-mail account instead. Too much headache for such a little implementation.

Thank you

Bill Sheboy
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 Champions.
August 18, 2020

I agree... 

Please post back here once you get a chance to try this, or mark the question as answered if it solves it.  That will help others in the community find solutions faster.  Thanks!

Whisley Santos
August 18, 2020

@Bill Sheboy,

Your suggestion did solve my problem with timezone :)

I am just not sure where to mark this as answered. All I see is "Report to moderators".

Have a great one.

Cheers.

Bill Sheboy
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 Champions.
August 19, 2020

Hi...

I am glad that helped solve your problem.  There should be a button up near your question to accept the answer.

Best regards,

Bill

Whisley Santos
August 19, 2020

@Bill SheboyI only saw that on my first post. I can no longer see it. Gonna need to leave for a moderator do to it :(

Like • Bill Sheboy likes this
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events