Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,365,417
Community Members
 
Community Events
168
Community Groups

Issue smart value in Link issue action

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

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

Atlassian Community Events