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: 

Help substracting dates that are created using scripted fields ( Scriptrunner)

laralg
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 Champions.
July 4, 2019

Hello,

I used to have a script that calculates cycle time substracting resolution and another date field. But I want to start using scriptrunners "Date of first transition" scripted field, to calculate when team go out of the backlog.

Could it be possible to substract the resolution - "date created with scritped field"?? Usually scripted fields  are always calculated on the go, but this "captures" a moment a transition happened.

Any help?

,

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
PD Sheehan
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 Champions.
July 8, 2019

All the scripted fields are still available via rest and java api.

The only place you can't retrieve those fields is if you try to look directly in the database.

So just retrieve the custom field like you would any other custom field:2019-07-08 09_35_02-Script Console.png