Versions Compared

Key

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

...

...

...

...

Warning

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !

Contents

Table of Contents

 


Excerpt

Statements provide a convenient method to execute conditional or repetitive operations. The syntax is C/C++/Java like, so things should be easy to grasp.

...

Code Block
if (isNotNull(fixVersions) and affectedVersions == {"1.1"})
{
    affectedVersions = {"1.1", "1.0" , "1.2"};
    fixVersions = {"1.2" , "1.2" , "1.3"} ;
}
else
{
    affectedVersions = {"1.1"};
    fixVersions = {"1.0"};
}

...


For Statement

The for statement provides a compact way to iterate over a range of values. Programmers often refer to it as the for loop because it repeatedly loops until a particular condition is satisfied. 

...

Code Block
for(<variable_definition> in #{array}){
   Instruction1;
   ...
   InstructionN;
}

Examples 

Example 1 (standard form)

...

Code Block
for(string user in watchers){
   print(user);
}

While Statement 

The while statement offers support for repeated executions. This form evaluates the condition first and then executes the instructions in the body.

...