You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Join now to unlock these features and more
I'm trying to copy system field (id = aggregatetimespent ) into a custom field using script field.
As I understand getCustomFieldObject is only good for custom fields
and getFieldById saying "can't find matching method".
So how can I get the value of a system field in a "Custom Script Field"?
If it were just the time spent on the current issue, then you could use issue.getTimeSpent()
But the aggregates are not tied to the issues. You'd need to use something like