This page explains how to access the value of Pre-defined custom fields using Groovy. You can access them using either the methods native to Groovy or the methods provided by JMWE.
To understand how to write values into the writable custom fields see Raw value/text input for fields and Groovy expression input for fields.
Note |
---|
'xxxxx ' in the custom fields detailed below is the ID of the custom field. Click here to know how to find the ID of the custom fields. |
...
...
This page explains how to access the value of Pre-defined custom fields using Groovy. You can access them using the getters of the Issue interface. To understand how to write values into the writable custom fields see Raw value/text input for fields and Groovy expression input for fields.
Note |
---|
'xxxxx ' in the custom fields detailed below is the ID of the custom field. Click here to know how to find the ID of the custom fields. |
In this page:
Capture for JIRA fields
Panel |
---|
|
Capture for JIRA Browser |
Panel |
---|
|
Capture for JIRA Document Mode |
Panel |
---|
|
Capture for JIRA jQuery Version |
Panel |
---|
|
Capture for JIRA BrowserOperating SystemField name: Capture for JIRA BrowserOperating System Description: The Capture for JIRA Browser Operating system field is a multi-line text field describing the browser operating system of the page captured. - Accessing the Capture for JIRA Browser Operating System field: You You can access the Capture for JIRA BrowserOperating System field using any of the following getters methods of the Issue interface: Browser that Browser
|
Panel |
---|
|
Capture for JIRA Document ModeScreen ResolutionField name: Capture for JIRA Document ModeScreen Resolution Description: The Capture for JIRA Document Mode Screen Resolution field is a multi-line text field describing the document mode screen resolution of the page capturedcapture. - Accessing the Capture for JIRA Document ModeScreen resolution field: You can access the Capture for JIRA Document ModeScreen Resolution field using any of the following methods of Issue interface:
|
Panel |
---|
|
Capture for JIRA jQuery VersionURLField name: Capture for jQuery VersionJIRA URL Description: The Capture for JIRA jQuery Version URL field is a multistring representation of a multi-line text field describing the jQuery version URL of the page captured. - Accessing the Capture for JIRA jQuery Version fieldURL field: You can access the Capture for JIRA jQuery VersionURL field using any of the following getters of the Issue interface:
|
Panel |
---|
|
Capture for JIRA Operating SystemUser AgentField name: Capture for JIRA Operating SystemUser Agent Description: The Capture for JIRA Operating system User agent field is a multi-line text field describing the operating system user agent of the page captured. - Accessing the Capture for JIRA Operating System User Agent field: You can access the Capture for JIRA Operating SystemUser Agent field using any of the following methods getters of the Issue interface:
|
Panel |
---|
|
Capture for JIRA Screen ResolutionRaised duringField name: Capture for JIRA Screen Resolution Raised during Description: The Capture for JIRA Screen Resolution Raised during field is a multi-line text field describing the screen resolution of the page capturestring representing the ID of the session the issue was raised in. - Accessing the Capture for Screen resolution field Raised during field: You can access the Capture for Screen ResolutionRaised during field using any of the following methods getters of the Issue interface:
|
Panel |
---|
|
Capture for JIRA URLTest sessionsField name: Capture for JIRA URL Test sessions Description: The Capture for JIRA URL Test sessions field is a string representation of a multi-line text describing the URL of the page capturedrepresenting the ID's of the sessions the issue belongs to. - Accessing the Capture for JIRA URL field Test Sessions field: You can access the Capture for JIRA URLTest Sessions field using any of the following getters of the Issue interface:
|
Panel |
---|
|
Capture for JIRA User AgentTesting status Field name: Capture for JIRA User Agent Testing status Description: The Capture for JIRA User agent Testing status field is a multi-line text field describing the user agent of the page captured string representing the status of the all the sessions the issue belongs to. - Accessing the Capture for JIRA User Agent Testing status field: You can access the Capture for JIRA User AgentTesting status field using any of the following getters of the Issue interface:
|
Jira Software fields
Panel |
---|
|
Raised duringEpic Color
Field name: Raised during Epic Color Description: The Raised during field is a string representing the ID of the session the issue was raised inEpic Color field is a multi-line text field describing the color of the Epic. - Accessing the Raised during field Epic Color field: You can access the Raised duringEpic color field using any of the following getters of the Issue interface:
|
Panel |
---|
|
Test sessionsEpic Link
|
Panel |
---|
|
Testing status Epic Name
Field name: Testing status Epic Name Description: The Testing status Epic Name field is a string representing the status of the all the sessions the issue belongs tomulti-line text field describing the name of the Epic. - Accessing the Testing status field Epic Name field: You can access the Testing statusEpic Name field using any of the following getters of the Issue interface:
|
...
Panel |
---|
|
Epic LinkRankField name: Epic Link Rank Description: The Epic link The Rank field is an object a string representing the Epic priority of the current issueissue at a more granular level than issue priorities in Jira. Accessing the Epic Link Rank field: You You can access the Epic LinkRank field using any of the following getters of the Issue interface:
|
Panel |
---|
|
Epic NameSprintField name: Epic Name Sprint Description: The Epic Name Sprint field is a multi-line text field describing the name of the Epiccollection of objects. Each object represents a Sprint. Accessing the Epic Name Sprint field: You can access the Epic NameSprint field using any of the following getters of the Issue interface:
|
Panel |
---|
|
Epic StatusStory Points
|
Panel |
---|
|
RankField name: Rank Description: The Rank field is a string representing the priority of the issue at a more granular level than issue priorities in JIRA. Accessing the Rank field: You can access the Rank field using any of the following getters of the Issue interface:
|
Jira Service Desk fields
Panel |
---|
|
ApprovalsField name: Approvals Description: The Approvals field is a collection of objects. Each object represents an Approval . Accessing the Approvals field: You can access the Approvals field using get(" RankApprovals") getAsString("Rank".getApprovals() or getAsStringget("customfield_xxxxx") that returns a LexoRank..getApprovals() method of the Issue interface that returns a Collection <Approval>
Example: Rank of Approvals on the parent issue: Code Block |
---|
language | groovy |
---|
linenumbers | true |
---|
| if(issue. | getParentObject()?.getAsString("Rank")get("Approvals").getApprovals())
{
issue.get("Approvals").getApprovals().first().getName()
} |
|
Panel |
---|
|
SprintApprovers
|
Panel |
---|
|
Story Points
|
Panel |
---|
|
Customer Request Type |
Panel |
---|
|
Approvals |
JIRA Service Desk fields
To get the Customer Request Type name as displayed on the issue view, you can use the following snippet: Code Block |
---|
language | groovy |
---|
linenumbers | true |
---|
| if(issue.get("Approvals").getApprovals())
{
issue.get("Approvals").getApprovals().first().getName()
}import com.atlassian.servicedesk.api.requesttype.RequestTypeService
def requestTypeService = getComponent(RequestTypeService)
def sourceIssueRequestTypeQuery = requestTypeService.newQueryBuilder().issue(issue.id).build()
def requestTypeEither = requestTypeService.getRequestTypes(currentUser, sourceIssueRequestTypeQuery)
if (requestTypeEither.isLeft()) {
log.warn "${requestTypeEither.left().get()}"
return false
}
return requestTypeEither.right.results[0].name |
|
Panel |
---|
|
ApproversOrganizations |
Panel |
---|
|
Customer Request Typeparticipants
Field name: Customer Request Typeparticipants Description: The Customer Request Type field represents an object describing the information about the Service Desk used to create the ticketRequest Participants is an array of objects. Each object represents an ApplicationUser. - Accessing the Customer request type Request Participants field: You can access the Customers Request Type participants field using any of the following getters of the Issue interface:"Customer Request Type") or get("customfield_xxxxx") that returns VpOrigin
Customer Type that a
|
Panel |
---|
|
OrganizationsSatisfactionField name: Organizations Satisfaction Description: The Organizations Satisfaction field represents is an array of Strings describing the Organizations the issue belongs toobject describing the request feedback in Service Desk requests. Accessing the Organizations Satisfaction field: You You can access the Organizations Satisfaction field using any of the following getters of the Issue interface: Organizations) that returns a Collection<Organization > Organizations
|
Panel |
---|
|
Request participantsSatisfaction dateField name: Request participants Satisfaction date Description: The Request Participants is an array of objects. Each object represents an ApplicationUserSatisfaction date field is a Timestamp representing the date of feedback provided by the customer. Accessing the Request Participants Satisfaction date field: You You can access the Request participants field using the Satisfaction date field using any of the following getters of the Issue interface:
To manipulate the date see here |
Panel |
---|
|
SatisfactionTime to resolutionField name: Satisfaction Time to resolution Description: The Satisfaction Time to resolution field is an object describing the request feedback in Service Desk requestsrepresenting a SLA value. Accessing the Satisfaction Time to resolution field: You You can access the Satisfaction field using the Time to resolution field using any of the following getters of the Issue interface:
Satisfaction dateField name: Satisfaction date Description: The Satisfaction date field is a Timestamp representing the date of feedback provided by the customer. Accessing the Satisfaction date field: You can access the Satisfaction date field using any of the following getters of the Issue interface:
|
Panel |
---|
|
To manipulate the date see here).getData()?.getOngoingCycle()?.getBreached() |
Note |
---|
You can access any other SLA field in a similar way as shown above. |
|
Portfolio for Jira fields
Panel |
---|
|
Time to resolutionField name: Time to resolution Description: The Time to resolution field is an object representing a SLA value. Accessing the Time to resolution field: You can access the Time to resolution field using any of the following getters of the Issue interface: get("Time to resolution") or get("customfield_xxxxx") that returns a SLA Value:
Example: Start time of the last completed cycle of the 'Time to first response' SLA: Code Block |
---|
issue.get("Time to resolution")?.getLastCompletedCycle()?.get()?.getStartTime() | getAsString("Time to resolution") or Parent Link- Field Name: Parent Link
Description: The Parent link field is an object representing the Initiative of the current Epic. It returns com.atlassian.rm.jpo.env.issues.SimpleIssueAttributes. Accessing the Parent Link field: You can access the Parent Link field using getAsString("Parent Link") or getAsString("customfield_xxxxx") that returns a SLA Value: a String representing the key of the Initiative the Epic belongs to.
|
Tempo fields
...
...
...