Forums

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

Jira Workflow Toolbox: adding labels to existing values in the label field

Katharina Flor February 7, 2025

Hi,

 

i am using Jira Workflow Toolbox and i want to add a Workflow post-function that adds during a specific transition, a label to the issue - add this label to already existing values in the label field.

How can I write the parser expression for it? With the current configuration, existing labels will be replaced.

Bildschirmfoto 2025-02-07 um 11.37.38.png

1 answer

1 accepted

2 votes
Answer accepted
Sergio García-Consuegra _Decadis AG_
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.
February 11, 2025

Hi @Katharina Flor ,

My name is Sergio, and I'm a member of the support team of Decadis.

You can achieve your current requirement by using the following general expression:

%{append(toStringList(%{issue.labels}), ["known-error"])}

This expression will join the current labels you have already selected with the label "known-error". The old values will remain, without being deleted as you mentioned in your comment, and also the value "known-error" will be added to the current labels which are selected for that issue.

If you have any questions about what JWT can do or how to implement any functionality for Jira, I encourage you to create a ticket on our support portal

I hope this solution is useful for you. If you have any other doubt, please let me know.

Best regards,
Sergio

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