Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you will find the site temporarily inaccessible. Thanks for your patience. Read more.
×Using Jira Product Discovery Project, I'd like to create a custom field in my ticket that counts the number of labels present in the "Labels" field in the ticket. Is there a formula/ function that I can use to get this count?
if you're open to solutions from the Atlassian Marketplace, this would be easy to do using the app that my team is working on: JXL for Jira.
JXL is a full-fledged spreadsheet/table view for your issues that allows viewing, inline-editing, sorting, and filtering by all your issue fields, much like you’d do in e.g. Excel or Google Sheets. It also comes with a long list of so-called smart columns that aren’t natively available, including the number of values of any labels field.
This is how it looks in action:
As you can see above, you can easily sort and filter by the number of labels, and also use it across JXL's advanced features, such as support for (configurable) issue hierarchies, issue grouping by any issue field(s), sum-ups, or conditional formatting.
This all just works - there's no scripting or automation whatsoever required.
I should add that this is not specific to JPD or JPD issues, but works in any of your Jira projects.
Any questions just let me know!
Best,
Hannes
You can do something similar to this:
This smart value will return the size of the labels (how many)
{{labels.size}}
When: Value changes -> you can set this to something else if needed
and: Edit issue fields
custom field
add the smart value here
The audit log action checks if I get the right value. is the same smart value.
Hope that helps!
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.