Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Query on EyeQL


I need help on writing a query for getting the number of Lines of code changed in a given branch (changed, added or deleted) between 2 dates (or tags)

1 answer

select revisions where 
(on branch fileutil and date in [2012-07-19T22:00:00.00Z, 2012-08-01T21:59:59.00Z]) 
order by date desc
return sum(linesAdded), sum(linesRemoved)

(Number of changed lines is not tracked separately.)

I guess I need to explain "between 2 dates" a bit better.

Within the date boundaries given, I can potentially add some lines of code and subsequently delete them. Impact of changes like this should not be reflected in the LoC calculation

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

71 views 0 0
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