Versions Compared

Key

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

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
    languagejs
    linenumberstrue
    {{ issue.fields["Flagged"] | find({"value":"Impediment"}) != null }}


  • Check the issue has a label Server

    Code Block
    languagejs
    linenumberstrue
    {{ issue.fields["Labels"] | find("Server") != null }}


  • The issue has 5.0.0 as an Affects Version/s

    Code Block
    languagejs
    linenumberstrue
    {{ issue.fields.versions | find({"name":"5.0.0"}) != null }}


...

Filter by label (Content by label)
showLabelsfalse
max5
spacesKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "jmwe-nunjucks" and type = "page" and space = "KBJMWEC"
labelsjmwe-nunjucks jmwe-cloud

...