Forums

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

Number of elements in variable

Krzysztof Hotiuk September 22, 2019 edited

Hi, 

Is any possibility to check how many elements are stored in variable ?

ex.

uprawnienia="jeden, dwa, trzy" -> it should tell, that here are three elements

uprawnienia="jeden" -> it should tell, that there is one element. 

I'm looking for something like this in JQL:

project="jakisprojekt" and numberof(uprawnienia)=1

I know, that it isn wrong statement but looking for something similar.

any idea?

I have "jira automation plugin". if I can use it, let me know how?

 

Thanks, 

Krzysztof

 

1 answer

0 votes
Nic Brough -Adaptavist-
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.
September 23, 2019

You'll need something that can be used to write a new "JQL function".  Automation cannot do that, you'll need one of the full Scripting apps to do that (or write your own app)

Another option might be a scripted field that simply returns issue.getCustomFieldValue(cf).size() - then you'll be able to say things like "and uprawnienia-count > 2" in plain JQL.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25 europe, atlassian event, barcelona 2025, jira, confluence, atlassian intelligence, rovo, ai-powered collaboration, developer tools, agile teams, digital transformation, teamwork solutions, atlassian conference, product announcements

🌆 Team '25 Europe registration is now open!

Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.

Register now
AUG Leaders

Atlassian Community Events