Jira Service Management Functions

 

Jira Service Management Structures

Below you’ll find the fields of the structures and some examples for each of them to get you an idea of what it is and what it does.

JSlaInformation

string name; JSlaCompletedCycle[] completedCycles; JSlaOngoingCycle ongoingCycle;

 

JSlaCompletedCycle

date startTime; date stopTime; boolean breached; number goalDuration; number elepsedTime; number remainingTime;

 

JSlaOngoingCycle

date startTime; date breachedTime; boolean breached; boolean paused; boolean withinCalendarHours; number goalDuration; number elepsedTime; number remainingTime;

 

Example 1 - getting the information from SLA customfield

 

Example 2 - getting the information from getSlaInformation function

 

JSMCustomerRequest

 

JSMCustomerRequestActions

 

JSMCustomerRequestStatus

 

Example 1 - get customer request with key/id

 

Example 2 - get only the statuses in which a customer request was

 

JSMApproval

 

JSMApprover

 

Example 1 - getting all approvals for the request provided

 

Example 2 - getting Approval by id

 

JSMAttachment

 

Example

 

JSMComment

 

Example 1 - get all (or just public / private) comments for request

 

Example 2 - get comment with a provided id from request

 

General Example For (some of the) Functions