...
This Knowledgebase article follows the procedure found at this Atlassian documentation, but shows how to do it the SIL way.
To get a list of all request types, return the “KEY” column of the AO_54307E_VIEWPORTFORM table. Note how the escape characters are used to denote that the quote is a string literal. For example:
Code Block string [] result = sql("jiraDB", "SELECT \"KEY\" FROM \"AO_54307E_VIEWPORTFORM\""); printInFile("request_type_keys.txt", result);
Remember to click on the “Refresh” button in the SIL Manager to see changes after running the script. This will return all possible request types for your system.
The request type will be a combination of the project key and request key. For example:
Code Block #{Customer Request Type} = "pi/getithelp";
To set the customer request type when using createIssue(), use the custom field mapping argument. For example:
Code Block string [] custom_field_mapping = "Customer Request Type|pi/getithelp"; string newIssueKey = createIssue( "PI", //project key "", //parentissuekey "Service Request", //issuetype "Summary goes here", //summary "", //priority "", //description "", //components "", //due date "", // estimate "", //security level custom_field_mapping //custom fields mapping );
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...