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 an array of objects or an array of values.
...
The output of this snippet is a boolean value (true
or false
) which you could use to conditionally execute a Post-function or Unlink issues:
Check the issue has been flagged
Code Block language js linenumbers true {{ issue.fields["Flagged"] | find({"value":"Impediment"}) != null }}
Check the issue has a label
Server
Code Block language js linenumbers true {{ issue.fields["Labels"] | find("Server") != null }}
The issue has
5.0.0
as an Affects Version/sCode Block language js linenumbers true {{ issue.fields.versions | find({"name":"5.0.0"}) != null }}
...
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...