Help needed for EyeQL query

I need help on writing a query for getting the top committers -by LOC,top commiters by revision,top commiters by commit and LOC by File extension.

I know we have Code Metrics Report section gives all these . But i want to get all the data specified in Code Metrics Report by querying so that i can use the values in my script using API.

Please let me know how to form the query to get above one.

1 answer

Top Committers by revision can be obtained by using following query:

select revisions from dir "<path to branch>" where author in '(<list of authors>)' return author,path"

The result may include both directory path and file path for an author .Remove the directory path using scripts and the count of path contains filename will give you the count of revision created by that particular author.

Top committers by commit can be obtained by

select revisions from dir "/branches/mybranch" where author in '(xx,yy,zz)' group by changeset return author,revision

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 16 hours ago in Off-topic

Get to know our Atlassian User Group Leaders from Bengaluru, India

Meet @Dinesh Dhinakaran, @Vishnu Vasudeva, @Rajeev Verma, and Jamshid Nalakath: Our extraordinary AUG leaders from Bengaluru, India. These four work together to strengthen the bonds of their local co...

116 views 0 4
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