Skip to end of banner
Go to start of banner

Dynamic Context

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

When specifying the context of an issue you do so by declaring the issue context
as a string in front of each field using dot notation.

Example 1 - Read only

string [] issueKeys = selectIssues("project = Test"); 

for(string key in issueKeys) {
  runnerLog(key + " - " + key.summary);
}

When just reading the value of fields this simple "key.value" notation can be used to specify the issue context.

Example 2 - Editable

string [] issueKeys = selectIssues("project = Test");

for(string key in issueKeys) {   
    %key%.labels = "newLabel";
}

When updating the values of fields using a dynamic context the issue key must be wrapped in % signs. This shortcut converts the issue key (which is simple text) into an editable issue object. Without using the substitution shortcut (the % signs) the issue is read-only.

  • No labels