Abstract
This code snippet checks the value of a standard or custom multi-valued type field (typically a multi-select field). The multi-valued fields can either be a collection of objects or a set of values.
...
The output of the code is a boolean value (true
or false)
which you could use to
Calculate and display a flag on the issue view screen if the issue has been flagged. For this, you will need to write a Groovy script to check that the issue has been Flagged and based on the result display a Flag using a Velocity template. See here for the use case.
Code Block language groovy linenumbers true return issue.get("Flagged")
Check the issue has
5.0.0
as an Affects Version/sCode Block language groovy linenumbers true issue.get("versions").any { it.getName() == "5.0.0"}
...
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...