Issue smart value in Link issue action

Sergei Gridnevskii
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.
August 18, 2022

Hi there,

I have a strange effect when trying to use smart value for an issue in Link issue action.

If match returns only one issue - I get an error issue not found

If match returns 2 issues, it works as a charm.


Could you please help me with the smart value?

{{comment.body.match("([A-Z]+-\d+)")}}

Untitled.png

1 answer

1 accepted

1 vote
Answer accepted
Sergei Gridnevskii
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.
August 18, 2022

OK we found the reason for that. The smart value contained space before first {

Now it works fine.

Strange that Atlassian do not do trim before applying logic to smart value fields. Even stranger that logic works differently if there is one value or a couple.

Suggest an answer

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

Atlassian Community Events