Forums

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

Automation - Set a field to the difference between now and the start date

Luke Twinney
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 15, 2024

I am trying to use automation to improve our reporting by automatically setting a field to the total time spent on a ticket. I am trying to accomplish this by setting a field to be the difference between the start date and when the issue was resolved. I'm using seconds in my rule for the sake of testing.

The rule seems to be running successfully however the "Time to Resolved" field is still empty afterwards. Time to resolved is a Date Time Picker field.

I've attached screenshots showing the full rule. Any ideas why this isn't working? 

Thank youCreate Variable.pngEdit Issue.pngIssue Transition.png

2 answers

1 accepted

1 vote
Answer accepted
Ste Wright
Community Champion
April 15, 2024

Hi @Luke Twinney 

There's no screenshots in the question - could you attach these?

Ste

Luke Twinney
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 15, 2024

Hi Stephen,

Sorry about that, they're uploaded now.

Thanks,

Luke

Ste Wright
Community Champion
April 15, 2024

Hi @Luke Twinney 

This won't work with a Date Time Picker - it's expecting an actual date-based value - eg. DD/MM/YYYY hh:mm - rather than a numeric value.

You'll need to publish this value either...

  • Into a number field, or...
  • Into a short text field (it can be the read-only type)

Ste

0 votes
Hannes Obweger - JXL for Jira
Atlassian Partner
January 7, 2025

Hi @Luke Twinney

welcome to the community!

I trust that you were able to resolve this using Jira Automation! Just as food for thought and for future reference: If you're open to solutions from the Atlassian Marketplace, you'll have more options available. E.g., your use case would be easy to solve using the app that my team and I are working on: JXL for Jira.

JXL is a full-fledged spreadsheet/table view for your issues that allows viewing, inline-editing, sorting, and filtering by all your issue fields, much like you’d do in e.g. Excel or Google Sheets. It also comes with a number of so-called smart columns that aren’t natively available, including the time to/since start date.

This is how it looks in action:

time-since-start-date.gif

As you can see above, you can easily sort and filter by the time to/since start date, and also use it across JXL's advanced features, such as support for (configurable) issue hierarchies, issue grouping by any issue field(s), sum-ups, or conditional formatting.

This all just works - there's no scripting or automation whatsoever required.

Any questions just let me know,

Best,

Hannes

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events