Forums

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

Problem with {{issue.key}} in automation message

Piotr Piotrowski October 20, 2022

Hi,

I have a problem with {{issue.key}} in the message I want to send, or to be more precise, what is the result of using it. To illustrate where is the problem, I did a test with syntax like this:

1. Case with space between {{issue.key}} {{issue.summary}}
2. No space between {{issue.key}}:{{issue.summary}}

The result is like on this pictureissue.key.png

"OTWARTE" is "OPEN" so it is the value of {{issue.status.name}}.

'New "space" test' it is the value of {{issue.summary}}

Where does this difference come from in what is displayed as {{issue.key}} in Case 1?

There is no such problem with other parameters and while using ${issue.key} in the Notification.

 

Kind regards,

Piotr Piotrowski

 

 

3 answers

1 accepted

5 votes
Answer accepted
Mark Segall
Community Champion
October 20, 2022

Hi @Piotr Piotrowski and welcome to the community!

When you have the space, the renderer gets smart and makes the key dynamically convert to key summary and status.  With no space, the renderer is unable to differentiate between the key and the following text and leaves it alone.

Piotr Piotrowski October 20, 2022

Hi Mark,

thanks for your answer, and it's nice to be here :)

Is there any option to control render, e.g. if I don't want it to add status?

Mark Segall
Community Champion
October 20, 2022

There currently is no way to turn it off (Vote for the suggestion JRACLOUD-37224).

So, your best bet is to continue with your alternate approach.

Piotr Piotrowski October 20, 2022

Thanks a lot.

Like Mark Segall likes this
0 votes
John Funk
Community Champion
October 20, 2022

HI Piotr - Welcome to the Atlassian Community!

Where is the information displayed - in an email message? That's strange it would display differently. Can you share a screenshot of the rule? 

Piotr Piotrowski October 20, 2022

To test this, you can use this simple rule:

1. Case with "space" between {{issue.key}} {{issue.summary}}
2. No "space" between {{issue.key}}:{{issue.summary}}

 

The result is displayed in the same way on the web as in the e-mail.

0 votes
Cloudites Owner
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.
October 20, 2022

Case 1 - match found, no colon.

Case 2 - no match found, with colon.

What are expecting for Case 2, the same match as in Case 1?

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