Forums

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

Adding variables to the Summary of a subtask

Carla Norman
Contributor
October 2, 2024

I have pulled 2 variables from the Description of the trigger issue.  These variables can be added one at a time to the subject of the subtask that the automation is creating but I can not get both variables to work.

Trying to set the summary to:

{{NewHireName}} - Add to Click Armor - {{DueDate}}

The error is:

The summary is invalid because it contains newline characters. (summary) I've been very careful typing them in a million times.
I'm hoping its a quick fix, thank you so much for reading!

3 answers

1 accepted

5 votes
Answer accepted
Trudy P Claspill
Community Champion
October 2, 2024

Hello @Carla Norman 

Please show us the steps you are using to set those variables.

In the Description field is the text you are trying to extract at the end of a line of text, with additional lines of text following them?

Trudy P Claspill
Community Champion
October 3, 2024

Try adding the trim() function to remove white space at the start and end of the retrieved substring.

{{issue.Description.substringBetween("a","c").trim()}}

Like Joseph Chung Yin likes this
Carla Norman
Contributor
October 3, 2024

{{issue.description.substringBetween("Preferred Full Name: ","Personal").trim()}}

This worked!!

Thank you, brilliant community!

Like Trudy P Claspill likes this
4 votes
Joseph Chung Yin
Community Champion
October 2, 2024

@Carla Norman -

Can you share some more information on your automation rule setup, especially on your local variable setup?

Please advise, so we can assist you further.

Best, Joseph Chung Yin

0 votes
Carla Norman
Contributor
October 3, 2024

I think the issue stems from where I'm grabbing the text for the variables.  
Description of trigger issue:

Last Name: Durham
Preferred Full Name: Bill Durham
Personal Email Address:

a0c48028-9ade-4a89-95d8-fe90d45e1fdf.png

There would be a new line character after the name that I need to remove?

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events