Forums

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

How can I use text manipulation on "Change type" field in an Automation?

Calvin
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.
October 17, 2024

Hi all,

I'm not sure if I'm understanding this incorrectly, I looked at here:

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/

And I can see that you can use things like: toLowerCase() to manipulate text. But when I try it, with the "Change Type" pre-made field it comes up blank.

eg:

{{issue.Change type.toUpperCase()}} --> Displays nothing ""

{{issue.Change type}} --> Displays "Normal" or "Standard"

Screenshot.png

2 answers

1 accepted

4 votes
Answer accepted
Calvin
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.
October 17, 2024

Ah, turns out this is a misunderstanding in my case. Although {{issue.Change type}} does indeed show the correct value chosen. For dropdown fields it apparently technically grabs the id value instead.

To work on the actual value, you need to specifically state you want the "value" of the dropdown. eg: {{issue.Change type.value.toUpperCase()}}

Cheers!

3 votes
Jack Brickey
Community Champion
October 17, 2024

Hi @Calvin , in your image it appears you are trying to change the Description field but you mention a custom field "Change type". Which field are you trying to change?

Jack Brickey
Community Champion
October 17, 2024

Maybe you are trying to add the value of Change type into Description?

Calvin
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.
October 17, 2024

Hi @Jack Brickey , thanks for your message. I'm trying to show the "Change Type" field in the description of the sub-task. But I want to manipulate it a bit using the automation smart value function so that its all upper case.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events