Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Concatenating Custom Fields from a Lookup - Formatting Problem

Kristopher Perez
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 13, 2023

Automation Current State:

  • Whenever the field "Executive Summary" is updated in any Jira Project
  • a check is done to see if the issue type is an Epic
  • and if the Epic has a Parent Initiative.  
  • Once both of these check pass, all Children of the Parent Initiative are queried
  • The Executive Summary field from each Epic is concatenated into the Executive Summary field at the Initiative Level.

The Formatting Problem

The above works perfectly.  The problem I am running into is with the formatting.  When a team ends their Executive Summary in a Bullet, List, or Table, each Executive Summary that follows get's a weird treatment of either indenting or appending to the previous table.

Here is the code block I am using for formatting the text:

h2. {{now.jiraDate}}
*Total Days: {{issue.Total Days}} | Remaining Days {{issue.Remaining Days}}*\\
{{#lookupIssues}}{color:red}*{{key}} {{summary}}*:{color}\\
{{Executive Summary}} \\
---- \\
{{/}}\\

I've trie forcing line breaks, adding additional content to the end of each Executive Summary, but nothing seems to work.  Any clever ideas out there to encase each Executive Summary so the formatting of a previous doesn't impact the subsequent Summaries?

Take a look at the images:

Screenshot 2023-03-13 at 1.18.58 PM.pngCursor_and__DISCO-1__Chat_Streams_MVP1_-_Slack_-_JIRA.png

1 answer

0 votes
David Pezet
Contributor
March 13, 2023

Maybe try adding an extra closer just in case?

...
{{Executive Summary}}
{{\}}
\\
...
David Pezet
Contributor
March 13, 2023

(Corrected the above. The closer needs to be on its own line.)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events