How can I copy a cascading select value with Automation for JIRA only if the value exists?

Pedro Faustino February 21, 2022

Hello,

I was following this tutorial and was wondering how I can set the cascading select value only if it contains the value being assigned?

{
  "update": {
    "Sample Cascade": [
      {
        "set": {
          "value": "{{triggerIssue.fields.Another Cascade.value}}",
          "child": {
            "value": "{{triggerIssue.fields.Another Cascade.child.value}}"
          }
        }
      }
    ]
  }
}

Imagine that the "Another Cascade" field contains a value that is not present in the field "Sample Cascade", how can we define a default value for this case?

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events