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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automation: some dates are not handled as dates

I am creating an automation to re-open issues after they have been On Hold for 4 weeks. In the rest response for an issue, there is: `statuscategorychangedate: "2020-11-14T11:56:58.128-0600"` which seems perfect. However, date functions (reference) don't work. I use the Log action to show their values but they come back blank. My Log value is: 

{{issue.fields.statuscategorychangedate.mediumDate}} and {{issue.fields.lastViewed.longDate}}

 Only "and" renders in the Audit Log. Comparison functions also don't work. If I remove `mediumDate`, the full string renders in the Log. 

What am I missing here? How can I render this field nicely?

1 answer

1 accepted

2 votes
Answer accepted

Hi @Jesse Maxwell 

I had an earlier support ticket on this, and I was told that 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.

Best regards,

Bill

That was it – thank you!

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Trello

📹 Favorite Trello templates

Hello Community!  My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. In this video, I'll share my favorite Trello templates. Templates mentioned in ...

75 views 4 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you