Would it be possible to query for any issues where, say, description is empty OR has a length less than X?
We've discovered that in certain exceptional situations, users have bypassed required text fields by entering "." or "tbd" or something similar. Since the forcing function of a required field has introduced bad behavior, I'd like to instead create a filter to identify empty or incomplete fields so that I can reach out and prevent them from remaining in that state.
Instance in question is self-hosted(aws), JIRA Software server 7.4.2.
Jira Query Language doesn't support that kind of text search natively.
However, ScriptRunner provides a search function that supports regular expressions, so maybe the following query returns all issues from FOO project with a description of less than 10 characters:
issueFunction in issueFieldMatch("project = FOO", "description", "^.{0,10}$")
Alternative methods at your disposal are:
Hope it helps.
For anyone (like me) still looking for this functionality (please?) several years later, it's one of the things you can hack your way around with Jira Automation and smart values, which do support text field length comparisons. No plugins required. I talk about this workaround process for date comparisons as a answer to this question.
For example, I have a comment that runs when an action is performed include the following line:
{{#if(issue.Description.length.lte(400))}}*Description seems a little short*.{{/}}
The key here is that {{issue.Description.length}} is something you can access and work from within the automation, which you could set to trigger on an action or schedule to run against a query of issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Love it when you find an answer to 'todays challenge' here.
Thanks Casey.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 nowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.