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 email - can not manipulate with "statuscategorychangedate" field value

Nicolay Subbota
Contributor
October 29, 2022

Hi!

I try to configure some email report based on manipulating with "statuscategorychangedate" field value, but looks like it does not work.

My email report is following:

Total issues that *too long* stuck: <b>{{lookupIssues.size}}</b>

{{#lookupIssues}}
• <a href="{{url}}">{{key}}</a> <b>{{summary}}</b> <font color="darkolivegreen">[{{issueType.name}}]</font>
Assignee: <b>{{assignee.displayName}}</b>
This issue stuck in <b>{{status.name}}</b> from <b>{{statuscategorychangedate.jiraDate}} {{statuscategorychangedate.longDate}} {{statuscategorychangedate}}</b> (<font color="red"><b>{{statuscategorychangedate.diff(now).prettyPrint}} {{statuscategorychangedate.diff(now).days}}</b></font>)
{{/}}

 

But only *pure* {{statuscategorychangedate}} is displaying, another manipulating with "statuscategorychangedate" field value does not work.

stuck.png

Automation

automation.PNG

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Nicolay Subbota
Contributor
October 29, 2022

Answer has been found in https://community.atlassian.com/t5/Jira-Software-questions/Automation-some-dates-are-not-handled-as-dates/qaq-p/1534402

 Status Category Changed Date was implemented as string rather than as a date/time field for some reason.  If you convert it first it should work:

{{issue.statuscategorychangedate.toDate.mediumDate}}

Last Viewed may have the same issue so try the same thing.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events