...
Examples
Example 1
Code Block | ||
---|---|---|
| ||
string[] fields = getIssueFields("DEMO-1"); return fields["summary"]; |
...
We can use the routine to partially clone an issue by copying only some of the fields from the original issue:
Code Block | ||
---|---|---|
| ||
string[] fields = getIssueFields("TP-1", true); string issue = createIssue(fields["project"], fields["parent"], fields["issueType"], fields["summary"] + " - part 2"); %issue%.customfield_10000 = fields["customfield_10000"]; %issue%.description = "Partial clone of issue TP-1"; return issue; |
...