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:

https://wiki.almworks.com/display/structure/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

The add-in you’ve been waiting for: Jira Cloud for Excel 🙌

Introducing Jira Cloud for Excel Here at the product integrations team at Atlassian, we are thrilled to announce the new Jira Cloud for Excel add-in! This add-in lets you export Jira data directly ...

841 views 5 22
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