Hi,
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
AggregateTimeSpentSystemField.getDuration(issue)
The problem is that for a story I need to get it also from all the sub issues.
It's possible but I trying to understand it there is just a way to get the value from the system field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, that call I mentioned should fetch it for the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.