Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Need to concatenate a text field and cascading field

Trevor Overstreet
Contributor
November 1, 2022

Hello,

I am trying to write an advanced expression so the Summary field will contain a text field from a form (already linked in forms to the Summary field) AND add a cascading field which is comprised of a team (parent) and client (child) once the form is submitted and task is created in Jira.

Example:

{{issue.summary}} - {{issue.CS Team and Client list.value""}}

"Campaign launch - Team ABC - Client XYZ

Error:

Error while parsing additional fields. Not valid JSON.

Screen Shot 2022-11-01 at 3.50.49 PM.pngScreen Shot 2022-11-01 at 3.59.08 PM.png

1 answer

1 accepted

2 votes
Answer accepted
Mark Segall
Community Champion
November 1, 2022

Hi @Trevor Overstreet - You don't need to use the More Options section for this.  You just need to add the Summary field from the "Choose fields to Set" selector.  Then place that smart value expression in there and you should be all set.

Trevor Overstreet
Contributor
November 2, 2022

Thanks for the reply @Mark Segall ! I will give it a shot

Trevor Overstreet
Contributor
November 2, 2022

@Mark Segall so I tried the origianl expression and was missing the cascading field data entirely. I altered the expression to {{issue.summary}} - {{issue.CS Team and Client list.value}} but there's an issue with the cascading field.

The result now is "Campaign launch - Team ABC".

I am missing the client (child value) at the end ( - Client XYZ)

Mark Segall
Community Champion
November 2, 2022

Yes - You'll want something like this:

{{issue.summary}} - {{issue.CS Team and Client list.value}}|{{issue.CS Team and Client list.child.value}}

Note - I'm using a pipe ("|") to separate the parent/child in the cascade.  You can use whatever you want there.

Like Trevor Overstreet likes this
Trevor Overstreet
Contributor
November 2, 2022

Perfect! Worked like a charm. Many thanks!

Like Mark Segall likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events