I create 7 Sub-tasks in workflow’s post-function using ScriptRunner (“Create a sub-task”). They are created and displayed in correct order in parent issue’s detail view screen.
Unfortunately, the display order is incorrect on a board and dashboard.
I’ve executed transition 3 times and each time generated Sub-tasks were displayed in different order on a board and Dashboard.
Issue display order:
1st transition order: 3, 2, 1, 7, 6, 5, 4
2nd transition order: 4, 3, 2, 1, 7, 6, 5
3rd transition order: 7, 6, 5, 1, 3, 2, 4
Board’s filter is “project = XYZ Order by Rank Asc” so as simple as it can be.
Jira version 8.3.2, ScriptRunner version 5.6.1.1
How to enforce correct display order for Sub-tasks on a board?
Thanks,
Paul
Could you explain what order you expect the sub-tasks to be in on the board? (As it has nothing to do with transitions, I'm a little confused on why you're talking about them)
Thanks Nick,
These Sub-tasks are individual actions which supposed to be executed in order, from 1st to 7th, hence it should be displayed in a Kanban column in this order. Please keep in mind on parent’s detail view issues are displayed correctly.
It’s like sending a package - first you need to get a box, open it, put something in, close it, go to a post office and then send it.
On a board and a Dashboard, the display order says I should first put something in the box before I got one.
When I create manually 7 Sub-tasks, there is no problem as they’re displayed from 1st to 7th on board/Dashboard.
As the filter uses Rank, I assume (!) that during transition’s creation, Sub-tasks’ Rank is assigned “differently” and as a result the display order is impacted.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, it is down to rank, the rank is not an order of process, it's a position in a list.
I can't think of a way to make this sequence appear, other than doing something very complex with scripted fields, which would then remove ranking from the board.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I suspected it is a Rank problem.
Interesting that when issues are created manually, everything is fine. So is the order on parent's detail view (looks like detail view is not using rank to display Sub-tasks)
Last question: is there any possibility to manage Rank while creating an issue, e.g. get another issue's rank and then make it "rank + 1" for an issue being created?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've created a bug for ScriptRunner:
SRJIRA-3816: https://productsupport.adaptavist.com/browse/SRJIRA-3816
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.