Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

% field based upon the workflow of the task

Arun September 17, 2019

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.

3 answers

1 vote
Joe Pitt
Community Champion
September 17, 2019

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. 

Arun September 17, 2019

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?

0 votes
Arun September 18, 2019

Any one has steps to achieve this? Thanks!

0 votes
Ilya Turov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 17, 2019

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 

Arun September 18, 2019

Thank you, the company does not want to spend money :(

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events