Add custom 'Statistic Type' to group gadget

I have the following filter:
status was resoled by membersOf (developers)

I'm using the 'Pier chart' gadget, I would like it in 'Statistic Type' to be grouped by the user who passed the status to resolved.

1 answer

0 vote

You will need to find or write a bit of code to do that.

The gadget can work on users, as you can tell by looking for "reporter" or "assignee" in the list.  But "last person who moved the issue through a transition" is not a field in JIRA. 

You'll either need to create a single user field for it, and then change your workflows so that a post-functionc sets the field to "current user", or create a scripted field that will look in the history to work it out.

Is there a way to create this field, and is it populated automatically whenever the event occurs?

That is, whenever a user changes the status to resolved this new field is populated with the name of the user. That in case it should be a list of users, for each user who does this in the same issue.

See third paragraph of my answer.  Although you'll need a multi-user-picker, and "add to list" code.

So I do not want to take another step in my workflow.

This feature needs to be invisible

Please re-read it again, there's no mention of new steps.

I only found 'script field' if using the ScriptRunner plug-in, and I do not have this plugin.

Or can I use the script field in another way?

There are other add-ons that might be able to do a scripted field for you, and some that might provide an explicit "users who did transaction" as well.

I've always got ScriptRunner around, so I've not looked for them

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,338 views 14 20
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot