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

get all the files where linesRemoved >0

  • I have a requirement to get all the files where few lines are removed from existing code( branch) using fisheye search criteria. I don't see this option now.

    my search should look some thing like this

    path like "*.xsd" and linesRemoved > 0

2 answers

Thanks for the info. Is there a way to filter the data with linesRemoved>0  on results?

I'm afraid no way to filter the data on linesRemoved>0 in FishEye product, that's why I recommended filtering externally in my answer.

Use the "Download results as CSV" link to download results as csv file and use the tools of your choice to do the filtering.  E.g. you can use curl and grep:

$ curl -s '' | grep -Ev ',0\s*$'
0 votes


I don't think you can use linesRemoved in the WHERE clause of EyeQL query, see, linesRemoved can only be used in return clauses.

Perhaps you want to consider workaround to retrieve all the files and their removed lines count, so you can filter externally?

Take a look at example queries:

Hope that helps,

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events