Less than a year ago, it is my understanding that an instance of JIRA was set up for the IT department. A short time later, there was one business unit that wanted to try it out. Rather than have them use the original instance, the other business unit was set up in another instance. There are also 2 instances of Confluence and not everything seems to talk to everything else. Since then, other business units want to leverage the tools, but it is very confusing as to why there are multiple instances and if it makes sense to collapse everything into one instance or not at this time. No one seems to be able to articulate the original reason for have unique instances, other than perhaps trust and the effort it takes to define common fields.
So the questions are: Any behind the scenes reasons for having multiple instances (benefits/drawbacks)? If we ultimately want to encourage collaboration and reporting across all business units, shouldn't we be in the same instance and isn't that easier to do sooner rather than later? Is there a load or license issue that may be in play here? I am just trying to understand the situation so that we can make good business decisions. Thanks!
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.