Hello everyone!
Have you ever wanted to display a progress bar in your JSM to your customers? I've built a solution that might work for this problem using Unicode symbols. This has been a highly requested feature, so I'm hoping this workaround might help others out.
I used a Unicode progress bar generator, and found that these symbols display the best on Windows and Mac. You can find the symbol generator here.
Preface
This solution can be adapted in any way that fits your needs. In this example, the progress bar is posted in the comments, but you can also place it in the description if desired. In our instance, we use it for specific tickets that we want the customer to view the status of, and it also includes the summary of the recently 'done' sub-task to keep it clear for the customer. Feel free to customize it in whatever fashion suits your needs. For example:
Before we create the automation, we'll need to create a custom number field and insert in to the desired project. This field will be used to 'host' and 'convert' the number for the automation. In this example, the custom field is called 'task percentage.' I wasn't able to find a solution that did not include creating a custom field.
Solution
I'm a little extra sometimes and changed the font color in the lookup table, but not necessary :)
Automation Steps:
{“key":"0.0","value":"{color:grey}▯▯▯▯▯▯▯▯▯▯▯▯▯▯▯▯▯▯▯▯{color}"},
{"key":"5.0","value":"{color:green}▮{color}{color:grey}▯▯▯▯▯▯▯▯▯▯▯▯▯▯▯▯▯▯▯{color}"}
{"key":"10.0","value":"{color:green}▮▮{color}{color:grey}▯▯▯▯▯▯▯▯▯▯▯▯▯▯▯▯▯▯{color}"}
{"key":"15.0","value":"{color:green}▮▮▮{color}{color:grey}▯▯▯▯▯▯▯▯▯▯▯▯▯▯▯▯▯{color}"}
{"key":"20.0","value":"{color:green}▮▮▮▮{color}{color:grey}▯▯▯▯▯▯▯▯▯▯▯▯▯▯▯▯{color}"}
...
This automation will create a visual representation of the progress bar and update the ticket's status accordingly. Feel free to tweak the steps based on your specific requirements.
I hope this helps! Let me know if you have any questions or suggestions for improvement.
This isn't working for me. The customer number field, Task Percentage, is blank on the parent issue as is {{issue.task percentage.format("###")}}% in the comment.
The audit log is showing the value calculated in {{=}}{{issue.task percentage.divide(5).round}}*5{{/}} it just doesn't appear to be updated Task Percentage field correctly after the addition to the audit log, but before the second re-fetch issue data.
Any suggestions?
@Riley Sullivan I rechecked my automation and nothing jumps out at me as being different than what you posted. Is the second Edit issue fields step really supposed to edit the Task Percentage field? It seems like it's trying to update a field that it's using to calculate the value.
The second edit for task percentage is intentional. The first is grabbing the exact percentage (ie 17.5%).
The second is rounding to the nearest number divisible by 5. Otherwise the lookup table would need every possible variable to work. Which is why the lookup table goes by 5's.
Is your custom field a number field?
That makes sense and what I figured. Yes, my customer field is a number field.
Ohh cool! Thanks for sharing!