Forums

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

Adding Ticket Specific Information

Joud Dakkuri
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!
March 31, 2026

Our developers are currently trying to add a prefix based on the task category field in our tasks. For example: if the task category is 'Feature', the GitLab string would be automatically updated to feat/ git commit -m "PRD26-65 General PnL Improvements", instead of git commit -m "PRD26-65 General PnL Improvements". Would it be possible to automate this ? Currently, I can only do this manually. 

1 answer

1 vote
Arkadiusz Wroblewski
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 Champions.
March 31, 2026

Hello @Joud Dakkuri 

Have you Tried Automation ? They Support Conditional Logic.

Automation smart values - conditional logic | Cloud automation Cloud | Atlassian Support

Joud Dakkuri
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!
March 31, 2026

Yes, but it's still not working 

Arkadiusz Wroblewski
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 Champions.
March 31, 2026

@Joud Dakkuri 

We need more Information, Field Type, some Screenshots from you.

Maybe Screenshot from Automation you tried.

Joud Dakkuri
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!
March 31, 2026

Screenshot 2026-03-31 at 15.43.42.pngScreenshot 2026-03-31 at 15.43.48.png

Joud Dakkuri
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!
March 31, 2026

Task Category is a checkbox field type 

Arkadiusz Wroblewski
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 Champions.
April 1, 2026

When Task Category is a checkbox field, Jira automation treats it as a list of values, not as one plain text value. For multi-checkbox fields, Atlassian’s examples use .value as a list and then methods like .join(...). Text functions only make sense after that list has been turned into a string. Also, the text function is toLowerCase(), not lowerCase.

So I would try this instead:

{{issue.Task Category.value.join("-").toLowerCase()}}/{{issue.key}}

And if your checkbox option labels themselves contain spaces, then this is usually safer:

{{issue.Task Category.value.join("-").toLowerCase().replace(" ","-")}}/{{issue.key}}

If Copy sample Git commit is just a normal text field, I would use Choose fields to set instead of the JSON box. Atlassian only recommends the Additional fields / JSON section when the field cannot be edited through the normal field picker. Your trigger setup itself is fine, because Field value changed supports custom fields and can be limited to the Create work item operation.

 

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