I am searching for issues using a JQL (that has order by rank), then based on those results I want to fill in ascending numbers in a custom number field. Can I do that simply with a smart value or do I need to constantly refetch the data?
Hey everyone we ended up writing our own script for this that was the only solution
Hi @Oriyah Barzilay and @Bill Sheboy
as we're trying _exactly_ the same, I'd like to share some thoughts on it.
As I understand the checkbox in the trigger-configuration, the following actions will be executed for each result of the JQL-query. Since the query already puts the issues in the wanted order (sorted by rank), this part of the problem should be solved.
The tricky part is: in the triggered action-configuration, how can I update the custom field in each ticket with an iterating number? Like, first issue in my set of JQL-query-results = 1, second issue = 2, third issue = 3 and so on?
If we don't find a solution within Jira Automation, we'll have to solve it via REST API, python script (already built and tested) and scheduler, but that obviously seems a bit over the top.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I believe what you describe about the order-processing of issues for the trigger is not possible. Automation rules which process multiple things (from triggers or branches) do so in parallel and asynchronously. There is no way to count, in order, using those methods.
There is complicated work-around using the Lookup Issues action and created variables (if you are using a version of automation rules which support those actions...
This is a slower rule, as it iterates over all issues in the JQL. And, it is limited to 100 issues, as that is the current limit for such branches.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy
thanks a lot, that sounds as if it could do the job, if there wasn't the limit to 100 issues :\
Do you have any further idea, how we could navigate around this limit?
Best regards,
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The other ways I can think to solve this are...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Would you please post images of your complete automation rule and the audit log details showing the rule execution? Those will provide context for the community to offer suggestions. Thanks!
Until we see those...
Are you trying to update each issue in the results of that JQL, or something else? There might be a way to do this using {{index}} for an iterator, but without seeing your rule that is difficult to know.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Bill,
I want to have a scheduled automation that runs on a JQL.
Based on the JQL results I want it to number the issues in the custom field. (1,2,3,4.... based on the rank)
I know I'm missing something in the middle
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for that information.
What you are describing is not possible using the Rank field (also known as LexoRank) as that is a non-numeric string of characters, which allows updates to ordering (including inserting issues in the middle of a list) without changing the Rank of surrounding issues.
I have seen other community posts doing this when creating the issues in a rule, but I do not believe it is possible to update existing issues with an incremental counter due to the way branches on more-than-one-issue process: in parallel and asynchronously.
If you need this infrequently, you could try the update using an import: https://support.atlassian.com/jira-cloud-administration/docs/import-data-from-a-csv-file/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online 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.