Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Examples

Example 1

Code Block
languagejs
string[] fields = getIssueFields("DEMO-1");
return fields["summary"];

Example 2

We can use the routine function to partially clone an issue by copying only some of the fields from the original issue:

Code Block
languagejs
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;

...

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "customfield_routinefunction" and space = currentSpace ( )
labelsarray_routinesfunctions