Smart value with regex to change assignee

Davide Santonocito
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 1, 2024


Good day!

I am desperately trying to automate this flow:

image_2024-10-01_194151105.png
Using this smart value:

{{#issue.comments}}{{body.match("((\w+\.\w+)(?=].*merge request))")}}{{/}}

Sadly, I get notified that the user is unknown:

 

image.png

 

Should I be changing the assignee of the issue in another way, perhaps using a key instead of the name.surname?

I tried using edit issue field and a custom payload but could not manage either.
Furthermore, I obtain this value by reading the comment left by gitlab integration, hence why I only get the name.surname, that coincidentally is always the same as the name of the jira user.

1 answer

1 accepted

3 votes
Answer accepted
Davide Santonocito
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 2, 2024

Found the solution by using edit issue instead.

Few notes:
- `Edit issue fields` action can take the user.name but `assign issue` only accepts user.id
- `Edit issue fields` allows the use of smart values, though it is not immediately clear due to the drop down list (just type from keyboard while selecting the field box to use your own smart value)


Here is how the automation looks:
image_2024-10-02_154224500.pngimage_2024-10-02_154237779.pngimage_2024-10-02_154248356.pngimage_2024-10-02_154258736.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events