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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

637 views 6 12
Read article

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