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@********
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We can use Service Desk REST API.
https://docs.atlassian.com/jira-servicedesk/REST/cloud/#servicedeskapi/request/{issueIdOrKey}/sla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@kevin santos, Have you found a way to read it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Pedro Felgueiras, Have you found a way to read the value?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you've gotten that far, have you tried to decompile the SLAValue? There's no API for it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.