Forums

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

Jira Automation : Using Two Smart Values Together

Rick Moerloos
April 28, 2023

I have an automation that examines the Labels field values and builds a string based on found labels (ultimately, I want to remove those labels). The first challenge is that if I find fewer labels than the total number of labels, I end up with a trailing comma at the end of my string that I want to remove. 

So, I try to remove the last character from my string, as follows:

 

Smart Value: teamLabels (examines the labels field and builds up a string based on found values):

{{#labels}}{{#if(startsWith("team/"))}}{"remove": "{{.}}"}{{^last}} ,{{/}}{{/}}{{/}}

Problem is that this can leave a trailing comma if there are additional labels. So, I try to remove it. 

Smart Value: teamLen (gets the length of teamLabels - 1)

{{#=}}{{teamLabels.length()}}-1{{/}}

Smart Value: teamLabelsTrim (returns teamLabels with the last char removed)

{{teamLabels.left(teamLen)}}

I have tried multiple variations of the formula for teamLabelsTrim and either Automations can't parse it, or teamLabelsTrim comes back empty. I verified teamLabels and teamLen have appropriate values. 

3 answers

1 accepted

0 votes
Answer accepted
Bastian Stehmann
Community Champion
June 13, 2018
Modha K Khammammettu
June 13, 2018

Thank you

0 votes
Vickey Palzor Lepcha
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.
October 17, 2019

Opening lines for JIRA DATA CENTER Supported Platforms ;

" Supported operating systems, databases, etc., are the same as for the Server installation, and you can see them here: "

0 votes
Bryan Trummer
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.
June 13, 2018

Hi Abe, I did research on this recently and found that Normal JIRA supported platforms and requirements apply to each node. Here is a snippet of document that I found the information in.

https://confluence.atlassian.com/adminjiraserver071/installing-jira-data-center-802592197.html

jdc.png

Modha K Khammammettu
June 13, 2018

Thanks a lot

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events