if there is away to force a format in a Jira field? what is type always comes out in capital letters

Amit Kumar Singh
Contributor
June 23, 2023

if there is away to force a format in a Jira field? For instance regardless of what is typed its always comes out in capital letters?

2 answers

2 accepted

4 votes
Answer accepted
Evgenii
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 23, 2023

Hi, @Amit Kumar Singh 

If you have scriptrunner, you can add postfunction, that transforms values in fields to uppercase.

Or, if you don't have scriptrunner, but have Jira Automation, you can create rules, which will transform text to uppercase on issue creation (for example).

Trigger: when issue create

Rule: edit issue, set summary with this: {{issue.summary.toUpperCase()}}

Amit Kumar Singh
Contributor
June 26, 2023

@Evgenii  Thank You! for this help. i'll try this and get back to you.

Like Evgenii likes this
Amit Kumar Singh
Contributor
June 26, 2023

@Evgenii  i have tried scriptrunner but don't find any option "transforms values in fields to uppercase" under post function which i used available in workflow transaction option.

i tried Jira Automation rule but don't succeed over there as well, 

i am Jira Admin but i rarely use these options, could you please help me to do this through one of the available easy options? 

Evgenii
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 26, 2023

@Amit Kumar Singh add this postfunction: Custom script post-function

For example, for uppercasing of description and summary you can use this:

issue.setSummary(issue.getSummary().toUpperCase())
issue.setDescription(issue.getDescription().toUpperCase())
image.png
image.pngimage.png
3 votes
Answer accepted
Fabian Lim
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 23, 2023

Hi @Amit Kumar Singh

You may want to use Jira Automation to do it.  

Trigger - Field Value Changed

Action - Use the smart values to edit the field Capitalize-> https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/ 

Hope this helps.

Amit Kumar Singh
Contributor
June 26, 2023

@Fabian Lim  Thank You! for this help. i'll try this and get back to you.

Amit Kumar Singh
Contributor
June 26, 2023

@Fabian Lim

i check this document and found the code {{issue.summary.toUpperCase(}}}} but don't know where or how to use them.

Fabian Lim
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 26, 2023

@Amit Kumar Singh

You will have to get the edit action and add the smart value formula to the field you want it to apply.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events