Skip to content

Added query to visualize interteam blocking dependencies #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,62 @@ ORDER BY
`Comment Total` DESC
```

### Interteam blocking dependencies
The use-case here is that as a Team/Project I would like to see which blocking dependencies I have with other Teams/Projects.
This query has been written from the perspective of a Team/Project, withint the context of a Release/Version.
```java
MATCH
(team:Project)-[:CONTAINS]->(teamIssues:Issue)
WHERE
team.key = '{Your Team/Project Key}'

MATCH
(teamIssues)-[:FIXES|:AFFECTS]-(release:Version)
WHERE
release.name = '{Your Release/Version Name}'

MATCH
(teamIssues)-[:HAS_LINK|:POINTS_AT]-(link:IssueLink)
WHERE
link.name = 'Blocks'

MATCH
(link)-[:POINTS_AT|:HAS_LINK]-(externaIssues:Issue)
WHERE
link.name = 'Blocks'

MATCH
(externaIssues)<-[:CONTAINS]-(externalTeam:Project)
WHERE
NOT externalTeam = team

MATCH
(externaIssues)--(externaIssuesStatus:Status)
// comment the following WHERE clause in to exclude issues with the externaIssuesStatus done, as they are not blocking anymore
// commenting it out is required to look at past projects/versions where all issues probably have status 'Done'
//WHERE
// NOT externaIssuesStatus.name = 'Done'

OPTIONAL MATCH
(externalTeamRelease:Version)--(externaIssues)

SET
teamIssues.description = teamIssues.key
SET
externaIssues.description = externaIssues.key

RETURN
team,
teamIssues,
release,
link,
externaIssues,
externaIssuesStatus,
externalTeam,
externalTeamRelease
```


## Supported Jira Versions

Unfortunately, we did not find any documentation which Jira versions are supported by the [JIRA REST Java Client](https://mvnrepository.com/artifact/com.atlassian.jira/jira-rest-java-client-api/5.1.1-e0dd194).
Expand Down