i want to develop a java application and i want to retrieve the SLA informations via Jira REST API or jira rest java client or jql or any way,can i do this?
i try to search the entire http://jiraServer/jira/rest/api/2/search
informations of an issue and i get this information:
com.atlassian.servicedesk.internal.sla.model.SLAValue@******
but i don't understand it.
can it help me? and what it is mean?
can you me?
you can get sla information by java
SlaInformationService slaInformationService = ComponentAccessor.getOSGIComponentInstanceOfType(SlaInformationService.class);
SlaInformationQuery query = slaInformationService.newInfoQueryBuilder() .issue(issue.getId()) .pagedRequest(SimplePagedRequest.paged(0, 50)) .build();
ApplicationUser user = ComponentAccessor.getJiraAuthenticationContext.getLoggedInUser();
PagedResponse<SlaInformation> pagedResponse = slaInformationService.getInfo(user, query).getOrNull();
SlaInformationService.DurationFormatter formatter = slaInformationService.getDurationFormatter();
List<SlaInformation> list = pagedResponse.getResults();
Try this way,
CustomField cf = ComponentAccessor.getCustomFieldManager().getCustomFieldObject("customfield_xxxx”); String v = cf.getCustomFieldType().getStringFromSingularObject(cf.getValue(issue))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is fixed now. You can use below 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.
Have you checked whether the Service Desk add on exposes its REST API?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.