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 Leaders.
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

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 Leaders.
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

Suggest an answer

Log in or Sign up to answer