It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

% field based upon the workflow of the task

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 Leader Sep 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. 

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?

I would suggest looking at the structure plugin, they have functionality to display custom progress based on status: 

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

Any one has steps to achieve this? Thanks!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Keep your team in the loop with Team @mentions in Jira Software!

Hi everyone! My name is Jenny, a Product Manager at Atlassian. After launching Team @mentions in Confluence, we heard a lot of positive feedback from customers that they love how easy it is to @men...

558 views 6 18
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you