Table of Contents |
---|
...
App configuration: tab "Rules"
All samples below have to be entered into the text field on tab "Rules". These rules will be executed automatically for all traffic light fields.
...
Set traffic-light "Criticality" of inward/outward linked issue(s) to current issue's "Criticality"
Info |
---|
// Having multiple linked target issues, the last update will overwrite prior settings of the linked source issue: var myCriticality = issue.trafficLight("Criticality"); |
Depending on the link direction, you can use issue.inward() or alternatively issue.outward() for the opposite link direction. The first parameter is the issue link type's direction name. Here: "relates to" is used, which is the same for both link directions whereas inward:"is blocked by" and outward:"blocks" in case of the issue link type "Blocks".
Get value of 2 fields (system field or custom field by names) and set traffic-light based on comparison of both field values
Info |
---|
var field1_name = "Technical Knowledge"; var field2_name = "Developing"; if (field1_value < field2_value) issue.trafficLight("Usability", "(,,red) red"); |
...