Versions Compared

Key

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

...

Each of these has examples of SIL code.

Info
titleRequired apps

Power Scripts for Jira (server)

Level: BASIC

Making a HTTP request to an external system

...

Code Block
titleSIL Code
string[] SUMMARIES = {"First sub-task for approval", "Second sub-task for approval"};
string[] subtasks = subtasks(key);
    
for(string summ in SUMMARIES) {
    boolean exists = false;
    for(string subtask in subtasks) {
	if(%subtask%.summary == summ) {
	   autotransition("Reopen Issue", subtask);
           exists = true;
        }       
    }
    if(!exists) {
	createIssue(project, key, "Sub-task", summ);
    }
}

See also