I'm trying to get the value of the SLA custom field but the value that is returned is an object. com.atlassian.servicedesk.internal.sla.model.SLAValue@********
If you've gotten that far, have you tried to decompile the SLAValue? There's no API for it.
i haven't tried that yet. how do you even do that?
I'm having the same problem.
I have try to find it on any maven repositories but I didn't find the object.
Do you have found solution ?
@Pedro Felgueiras, Have you found a way to read the value?
@kevin santos, Have you found a way to read it?
We can use Service Desk REST API.
https://docs.atlassian.com/jira-servicedesk/REST/cloud/#servicedeskapi/request/{issueIdOrKey}/sla
This is the way,
CustomField cf = ComponentAccessor.getCustomFieldManager().getCustomFieldObject("customfield_xxxx”); String v = cf.getCustomFieldType().getStringFromSingularObject(cf.getValue(issue))
How do you then decode this value, as i get it as a JSON value?
It looks like you're new here. Sign in or register to get started.