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: 

converting MS from smart value to time with scriptrunner

Ben
Contributor
July 31, 2021

Hi,

the use case is that i need to convert the elapsed time of an SLA to a hh:mm:ss format. 

i would like to create a script this, but im a newbie to script runner and cant find my arms and legs there. 

the elapsed time is within the issue {{issue.customfielfforSLA.elapsed.miliseconds}}

i need to convert it to hh:mm:ss and update another issue's field. 

 

any assistance would be highly appreciated. 

 

Thanks

Ben. 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Martin Bayer _MoroSystems_ s_r_o__
Community Champion
August 1, 2021

Hi @Ben , can you share more information? What setup of your environemtn is used? Can you share screenshots or something? At least there is a page with documentation of datetime functions: https://support.atlassian.com/jira-software-cloud/docs/smart-values-date-and-time-functions/

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events