Smart Value for Template not matching Issue API information

Jason Dunn February 27, 2024

We have an automation that adds issue comments and sends email alerts noting if an issue hasnt been updated in 2 days. weve had two notable instances where the template provides dates in the future.

<org>/rest/api/2/issue/<issue>?expand=names

finding last issue update

"updated": "2024-02-27T09:02:59.821-0500",

Partial Automation Output: 

"status since 2/27/24, 12:56 PM."

Automation template:

Hi {{Reporter.displayName}},
Your request {{issue.key}} - {{issue.summary}} has been in {{issue.status.name}} status since {{issue.updated.shortDateTime}}. Please update the status or comment on the issue.

Please use the following link to update your ticket:

{{issue.url.customer}}

1 answer

0 votes
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 Leaders.
February 27, 2024

Hi @Jason Dunn 

For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, and an image of the audit log details showing the rule execution.  Those will provide context for the community to offer ideas that may help explain this symptom.  Thanks!

Until we see that...

Perhaps the display is showing in a different time zone value.

Kind regards,
Bill

Jason Dunn February 29, 2024

Screenshot 2024-02-29 164332.png

Here is a screenshot of the workflow. 

Were not doing anything special here so unless something weird is being interpolated by using shortDateTime in the action I'm not sure what else to show you. Our system is set up in the correct time zone. 

Screenshot 2024-02-29 164513.png

This issue has only come up a handful of times since the rule was created but this functionality seems frail enough to cause concern. 

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 Leaders.
February 29, 2024

Thanks for that information.  Would you also please post:

  • an image of your scheduled trigger's details,
  • an image showing the audit log details (i.e., show more) for an execution of the rule which had this behavior, and
  • for an issue which had this behavior, and image of that issue's change history

Those will narrow down if the trigger is the cause, there was a problem during rule execution, or perhaps something else.

 

Please also note there have been automation problems related to the Jira Cloud incidents for the last couple of days.  One symptom is rules are not running as expected due to configuration problems from the incidents.  Watch here to learn more:

https://jira-software.status.atlassian.com/

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events