For statistical purposes, I'd like to know if it possible to know the ordinal number (1 : first, 2 : second, 3 :third, so on) of the current step in a WorkFlow. Are they stored in a field perhaps? At the moment, there are not any script runner plugin. Thanks.
If you mean "how many steps in a workflow", then no, it's not really stored, but you can just look at the workflow to see how many there are.
If you mean "how many status has a particular issue been through", then it's not directly stored, but you can work it out from the history. Bear in mind that it's perfectly possible for issues to go back and forth, so your "ordinal" for, say, "in progress" might well be a set (e.g. it was in that state 2nd, 4th, 7th, 9th, 14th etc)
You will need code if you want to expose these directly as fields.
It sounds to me like you want to know if the workflow status has a number that represents it's position in the workflow, Like this Open (1) -> In Progress (2) -> test (3) - Closed (4) . If so, I don 't believe JIRA stores that. Remember, statuses can be used in many workflows so it can't be part of the status definition. If you need that you should create a custom field and populate it with the step number as you define it in a post function of the transition going into the status in question. So when moving from open to in progress you set it to 2. Put the field only on the view screen so it can't be edited.
That's a better way of explaining what I was getting at in my second point.
In Joe's example, the ordinals for a well behaved issue would be 1, 2, 3, 4. But imagine a failed test - you'd get it go through six ordinals, but not 1, 2, 3, 4, 5, 6. It would be 1, 2, 3, 2, 3, 4. So "ordinals" fail really because 2 and 3 are no longer unique.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG