I have a case where I need to have a custom field called % of Completion (number) and it should auto populate the % based upon the workflow of the task.
This also has another scenario where the custom field auto populate the % based on the issue status ( Open - 0%, , In Progress and other status represent the values, Closed - 100%)
If above does not qualify, please advise alternative scenario to match the above scenarios.
If I understand you correctly, the % value should change based on the workflow step. That is fairly easy to implement in a workflow, but not so easy if you want it on multiple workflows. The out of the box solution is to create a custom field and use a post function to set the value each time you transition the workflow. Only put the field on the view screen so it can't be edited by the user.
The other, more complicated solution, is to have scripting set the value. The script would need to know the number of steps in the workflow and divide 100% by that number of steps and set it in a post function. If you have possible alternate branches it becomes more complicated.
Thanks Joe, May be I would need detailed steps to apply your suggestion. I tried to add post function but which of the available options sets the value to the custom field and for each status change before or after?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would suggest looking at the structure plugin, they have functionality to display custom progress based on status:
https://wiki.almworks.com/display/structure/Progress+Based+on+Status
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.