Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 Trello

🏊‍♀️ Atlympic Event: Trello

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

124 views 1 12
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