Forums

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

smart value/JQL with date

bartlomiej.jochym
Contributor
January 27, 2024

Hi, is it possible create smart value/JQL to write hours and minutes like example 2 hours 53 minutes instead of 2254?

Currently I have one created as in the picture, but it returns only minutes or hours (depending on the setting), but without the minutes note

Screenshot 2024-01-28 at 02.07.38.png

 

Screenshot 2024-01-28 at 02.06.17.png

2 answers

1 accepted

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 Leaders.
January 28, 2024

Hi @bartlomiej.jochym 

Have you tried using the date / time difference with the prettyPrint format?  That should produce what you asked.  For example:

{{issue.created.diff(now).prettyPrint}}

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/#Date-difference---

Kind regards,
Bill

bartlomiej.jochym
Contributor
January 28, 2024

thanks it works, I changed my query to {{triggerIssue.Begin Date.diff(now).prettyPrint}}

Like Bill Sheboy likes this
0 votes
Fabian Lim
Community Champion
January 27, 2024

Hi @bartlomiej.jochym

You can probably create the variables to capture the hours and minutes separately and then put them into a string using math functions and string concatenation -> Link: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/

I hope this makes sense.  

Fabian

Suggest an answer

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

Atlassian Community Events