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. |
...
...
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 BrowserDocument Mode |
Panel |
---|
|
Capture for JIRA Document ModejQuery VersionField name: Capture for JIRA Document ModejQuery Version Description: The Capture for JIRA Document Mode jQuery Version field is a multi-line text field describing the document mode jQuery version of the page captured. - Accessing the Capture for JIRA Document Mode fieldjQuery Version field: You can access the Capture for JIRA Document ModejQuery Version field using any of the following methods getters of the Issue interface:
|
Panel |
---|
|
Capture for JIRA jQuery VersionOperating SystemField name: Capture for jQuery VersionJIRA Operating System Description: The Capture for JIRA jQuery Version Operating system field is a multi-line text field describing the jQuery version operating system of the page captured. - Accessing the Capture for JIRA jQuery Version Operating System field: You can access the Capture for JIRA jQuery VersionOperating System field using any of the following getters methods of the Issue interface:
|
Panel |
---|
|
Capture for JIRA Operating SystemScreen ResolutionField name: Capture for JIRA Operating SystemScreen Resolution Description: The Capture for JIRA Operating system Screen Resolution field is a multi-line text field describing the operating system screen resolution of the page capturedcapture. - Accessing the Capture for JIRA Operating System fieldScreen resolution field: You can access the Capture for JIRA Operating SystemScreen Resolution field using any of the following methods of Issue interface:
|
Panel |
---|
|
Capture for JIRA Screen ResolutionURLField name: Capture for JIRA Screen ResolutionURL Description: The Capture for JIRA Screen Resolution URL field is a multistring representation of a multi-line text field describing the screen resolution URL of the page capturecaptured. - Accessing the Capture for Screen resolution JIRA URL field: You can access the Capture for Screen ResolutionJIRA URL field using any of the following methods getters of the Issue interface:
|
Panel |
---|
|
Capture for JIRA URLUser AgentField name: Capture for JIRA URLUser Agent Description: The Capture for JIRA URL User agent field is a string representation of a multimulti-line text field describing the URL user agent of the page captured. - Accessing the Capture for JIRA URL fieldUser Agent field: You can access the Capture for JIRA URLUser Agent field using any of the following getters of the Issue interface:
|
Panel |
---|
|
Capture for JIRA User AgentRaised duringField name: Capture for JIRA User Agent Raised during Description: The Capture for JIRA User agent Raised during field is a multi-line text field describing the user agent of the page capturedstring representing the ID of the session the issue was raised in. - Accessing the Capture for JIRA User Agent Raised during field: You can access the Capture for JIRA User AgentRaised during field using any of the following getters of the Issue interface:
|
Panel |
---|
|
Raised duringTest sessions |
Panel |
---|
|
Test sessionsTesting status |
Jira Software fields
Panel |
---|
|
Testing status Epic Color
Field name: Testing status Epic Color Description: The Testing status Epic Color field is a string representing the status of the all the sessions the issue belongs tomulti-line text field describing the color of the Epic. - Accessing the Testing status field Epic Color field: You can access the Testing statusEpic color field using any of the following getters of the Issue interface:
|
Jira Software fields
Panel |
---|
|
Epic StatusRankField name: Epic Status Rank Description: The Epic Status The Rank field is a multi-line text field string representing the status priority of the Epicissue at a more granular level than issue priorities in Jira. Accessing the Epic Status Rank field: You You can access the Epic statusRank field using any of the following getters of the Issue interface:
|
Panel |
---|
|
RankSprintField name: Rank Sprint Description: The Rank The Sprint field is a string representing the priority of the issue at a more granular level than issue priorities in Jiracollection of objects. Each object represents a Sprint. Accessing the Rank Sprint field: You You can access the Rank Sprint field using any of the following getters of the Issue interface: get("Rank") or get("customfield_xxxxx") that returns a LexoRank.
Example: Rank of the parent issue
|
Jira Service Desk fields
Panel |
---|
|
Story PointsApprovalsField name: Story Points Approvals Description: The Story Points Approvals field is a number representing the story pointscollection of objects. Each object represents an Approval . Accessing the Story Points Approvals field: You You can access the Story points Approvals field using any of the following getters of the Issue interface: get(" Story Points"Approvals").getApprovals() or get("customfield_xxxxx") .getApprovals() method of the Issue interface that returns a Double Collection <Approvals> Example: Story points of the story: Code Block |
---|
language | groovy |
---|
linenumbers | true |
---|
| issue.get("Story Points") |
Example: Increase the story points by 10Approvals on the issue: Code Block |
---|
language | groovy |
---|
linenumbers | true |
---|
| if(issue.get(" |
Story Points"Approvals").getApprovals())
{
issue.get(" |
Story Points + 10
}getAsString("Story Points") or getAsString("customfield_xxxxx") that returns a String representing the Story points
Example: Story points of the issue: Code Block |
---|
language | groovy |
---|
linenumbers | true |
---|
| issue.getAsString("Story Points") |
|
...
.getApprovals().first().getName()
} |
|
Panel |
---|
|
ApprovalsApprovers
Field name: ApprovalsApprovers Description: The Approvals Approvers field is a collection an array of objects. Each object represents an Approval . Accessing the Approvals field: You can access the Approvals field using get("Approvals").getApprovals() or get ApplicationUser. - Accessing the Approvers field: You can access the Approvers field using any of the following getters of the Issue interface: .getApprovals() method of the Issue interface
Collection <Approvals>
|
Panel |
---|
|
ApproversCustomer Request TypeField name: Approvers Customer Request Type Description: The Approvers Customer Request Type field is represents an array of objects. Each object represents an ApplicationUserobject describing the information about the Service Desk used to create the ticket. - Accessing the Approvers Customer request type field: You can access the Approvers Customers Request Type field using any of the following getters of the Issue interface:
get(" ApproversCustomer Request Type") or get("customfield_xxxxx") that returns a Collection <ApplicationUser>: VpOrigin
Example: Names of all approvers who approved the issueCustomer request type: def names = []
.get("Approvers").each(){
names += it.getName()
}
names.join(",".get("Customer Request Type")?.getRequestTypeKey() |
getAsString(" ApproversCustomer Request Type") or getAsString("customfield_xxxxx") that that returns a String with comma separated Approvers usernames String representing the request type name:
Example: Names of all approvers who approved the issueCustomer request type: Code Block |
---|
issue.getAsString(" | Approvers
|
Panel |
---|
|
Customer Request TypeOrganizationsField name: Customer Request Type Organizations Description: The Customer Request Type Organizations field represents an object array of Strings describing the information about the Service Desk used to create the ticket. Organizations the issue belongs to - Accessing the Customer request type Organizations field: You You can access the Customers Request Type Organizations field using any of the following getters of the Issue interface:
get(" Customer Request TypeOrganizations") or get("customfield_xxxxx") that returns VpOrigin that returns a Collection<Organization >
getAsString(" Customer Request TypeOrganizations") or getAsString("customfield_xxxxx") that returns a String representing the request type name with comma separated Organization ID's:
|
Panel |
---|
|
OrganizationsRequest participants
Field name: Organizations Request participants Description: The Organizations field represents Request Participants is an array of Strings describing the Organizations the issue belongs toobjects. Each object represents an ApplicationUser. - Accessing the Organizations Request Participants field: You You can access the Organizations Request participants field using any of the following getters of the Issue interface:Organizations that a Organization
ApplicationUser >Number Organizations issue belongs toOrganizations")?.size()Names of the Organizations:"Organizations")?.join(",")"Request participants").find(){
it.getName() == "JohnDoe"
}!=null |
getAsString("
Organizations that a Organization ID'susernames: Names Organizationsall the participants: Code Block |
---|
issue.getAsString(" |
Organizations
|
Panel |
---|
|
Request participantsSatisfactionField name: Request participants Satisfaction Description: The Request Participants Satisfaction field is an array of objects. Each object represents an ApplicationUserobject describing the request feedback in Service Desk requests. Accessing the Request Participants Satisfaction field: You can access the Request participants Satisfaction field using any of the following getters of the Issue interface:
|
Panel |
---|
|
Satisfaction dateField name: Satisfaction date Description: The Satisfaction date field is an object describing the request feedback in Service Desk requestsa Timestamp representing the date of feedback provided by the customer. Accessing the Satisfaction date field: You You can access the the Satisfaction field using date field using any of the following getters of the Issue interface:
To manipulate the date see here |
Panel |
---|
|
Satisfaction dateTime to resolutionField name: Satisfaction date Time to resolution Description: The Satisfaction date Time to resolution field is a Timestamp representing the date of feedback provided by the customeran object representing a SLA value. Accessing the Satisfaction date Time to resolution field: You can access the Satisfaction date field using Time to resolution field using any of the following getters of the Issue interface: To manipulate the date see here |
Portfolio for Jira fields
Panel |
---|
|
Time to resolutionParent Link field |
Tempo fields
...