diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b005c17 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.idea/ +.gradle/ +out/ +build/ +*.iml \ No newline at end of file diff --git a/build.gradle b/build.gradle index 74c6bfa..1d867ff 100644 --- a/build.gradle +++ b/build.gradle @@ -14,8 +14,8 @@ buildscript { apply plugin: 'java' apply plugin: 'spring-boot' - sourceCompatibility = 1.8 - targetCompatibility = 1.8 +sourceCompatibility = 1.8 +targetCompatibility = 1.8 repositories { @@ -33,4 +33,8 @@ dependencies { testCompile 'org.springframework.boot:spring-boot-starter-test' } -defaultTasks 'clean', 'assemble', 'check', 'test' \ No newline at end of file +defaultTasks 'clean', 'assemble', 'check', 'test' + +task wrapper(type: Wrapper) { + gradleVersion = '2.9' +} \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..5c7efbf Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..39de670 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-2.9-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew new file mode 100755 index 0000000..cccdd3d --- /dev/null +++ b/gradlew @@ -0,0 +1,172 @@ +#!/usr/bin/env sh + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=$(save "$@") + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong +if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then + cd "$(dirname "$0")" +fi + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000..e95643d --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,84 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windows variants + +if not "%OS%" == "Windows_NT" goto win9xME_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/src/main/java/juja/github/stat/GithubIssueSystem.java b/src/main/java/juja/github/stat/GithubIssueSystem.java index fbbcc5e..dbfde32 100644 --- a/src/main/java/juja/github/stat/GithubIssueSystem.java +++ b/src/main/java/juja/github/stat/GithubIssueSystem.java @@ -1,10 +1,24 @@ package juja.github.stat; -import com.jcabi.github.*; +import com.jcabi.github.Comment; +import com.jcabi.github.Coordinates; +import com.jcabi.github.Github; +import com.jcabi.github.Issue; +import com.jcabi.github.Issues; +import com.jcabi.github.Repo; +import com.jcabi.github.Search; import java.io.IOException; import java.time.Duration; -import java.util.*; +import java.time.LocalDateTime; +import java.time.ZoneOffset; +import java.time.ZonedDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.EnumMap; +import java.util.HashSet; +import java.util.List; +import java.util.Set; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.stream.StreamSupport; @@ -26,37 +40,92 @@ public GithubIssueSystem(Github github, String owner, String name, String manage @Override public List fetchTimeReports() throws IOException { + LocalDateTime ldt = LocalDateTime.now().minusMonths(1L); + ZonedDateTime zdt = ldt.atZone(ZoneOffset.UTC); + final EnumMap qualifiers = new EnumMap<>(Issues.Qualifier.class); - qualifiers.put(Issues.Qualifier.STATE, Issue.OPEN_STATE); - qualifiers.put(Issues.Qualifier.LABELS, "prod");//ready,in progress,review,stage,QA,prod,CLOSE IT + qualifiers.put(Issues.Qualifier.STATE, "all"); + qualifiers.put(Issues.Qualifier.SINCE,zdt.toString()); + +// qualifiers.put(Issues.Qualifier.LABELS, "prod");//ready,in progress,review,stage,QA,prod,CLOSE IT Iterable issues = repo.issues().search(Issues.Sort.CREATED, Search.Order.ASC, qualifiers); - return StreamSupport.stream(issues.spliterator(), true).flatMap( - issue -> StreamSupport.stream(issue.comments().iterate().spliterator(), true) - ).filter(comment -> { - try { - String content = new Comment.Smart(comment).body().toLowerCase(); - Set words = new HashSet<>(Arrays.asList(content.split("\\s+"))); - return words.contains(this.manager) && containsTimeReport(words) - && (words.contains("time") - || words.contains("spent") || words.contains("spend")); - } catch (IOException e) { - return false; - } - }).map(comment -> { - Comment.Smart smart = new Comment.Smart(comment); - try { - String id = String.valueOf(smart.number()); - String url = comment.json().getString("html_url"); - final String body = smart.body().replaceAll("\r\n", "\n"); - return new TimeReport(id, url, body, smart.author().login(), calculateTimeDuration(body)); - } catch (IOException e) { - e.printStackTrace(); - throw new RuntimeException(e); - } - }).collect(toList()); + return StreamSupport.stream(issues.spliterator(), true) + .filter(issue -> { + Issue.Smart smartIssue = new Issue.Smart(issue); + try { + return smartIssue.isPull() || !smartIssue.state().equalsIgnoreCase("closed"); + } catch (IOException e) { + return false; + } + } ) + .flatMap( + issue -> StreamSupport.stream(issue.comments().iterate().spliterator(), true) + ).filter(comment -> { + try { + String content = new Comment.Smart(comment).body().toLowerCase(); + Set words = new HashSet<>(Arrays.asList(content.split("\\s+"))); + return words.contains(this.manager) && containsTimeReport(words) + && (words.contains("time") + || words.contains("spent") || words.contains("spend")); + } catch (IOException e) { + return false; + } + }).map(comment -> { + Comment.Smart smart = new Comment.Smart(comment); + try { + String id = String.valueOf(smart.number()); + String url = comment.json().getString("html_url"); + final String body = smart.body().replaceAll("\r\n", "\n"); + + Issue.Smart smartIssue = new Issue.Smart(smart.issue()); + String issueNumber = String.valueOf(smartIssue.number()); + + String parentId = "FirstIssue"; + + if (smartIssue.isPull()) { + + final List ids = getConnections(smartIssue); + + parentId = ids.isEmpty() ? "PullWithOutConnect" : ids.get(0); + } + + return new TimeReport(id, url, body, smart.author().login(), + calculateTimeDuration(body), + issueNumber, + parentId + ); + } catch (IOException e) { + e.printStackTrace(); + throw new RuntimeException(e); + } + }).collect(toList()); + } + + private List getConnections(Issue.Smart smartIssue) throws IOException { + Set words = new HashSet<>(Arrays.asList(smartIssue.body().toLowerCase().split("\\s+"))); + return words.stream() + .filter(this::hasConnectionToIssue) + .flatMap(word -> { + List times = new ArrayList<>(); + while (!word.isEmpty()) { + final String pattern = "(\\#+\\d){1}"; + Matcher matcher = Pattern.compile(pattern).matcher(word); + if (matcher.find()) { + times.add(matcher.group(1)); + } + word = word.replaceFirst(pattern, ""); + } + return times.stream(); + } + ).collect(toList()); } + private boolean hasConnectionToIssue(String word) { + return word.matches("(\\#+\\d){1}"); + } + + private Duration calculateTimeDuration(String content) { Set words = new HashSet<>(Arrays.asList(content.toLowerCase().split("\\s+"))); Duration total = words.stream().filter(word -> isTimeReport(word)).flatMap(word -> { diff --git a/src/main/java/juja/github/stat/LocalStarter.java b/src/main/java/juja/github/stat/LocalStarter.java index ddeea41..cf1cdb1 100644 --- a/src/main/java/juja/github/stat/LocalStarter.java +++ b/src/main/java/juja/github/stat/LocalStarter.java @@ -8,6 +8,7 @@ import java.util.List; import java.util.Map; +import static java.util.stream.Collectors.groupingBy; import static java.util.stream.Collectors.toMap; /** @@ -16,17 +17,54 @@ public class LocalStarter { public static void main(String[] args) throws IOException { - Github github = new RtGithub("Insert you private token"); - GithubIssueSystem issueSystem = new GithubIssueSystem(github, "vkuchyn", "socialscore", "@Bizon4ik"); +// Github github = new RtGithub("Insert you private token"); + Github github = new RtGithub(); //without token github has small rate limit + GithubIssueSystem issueSystem = new GithubIssueSystem(github, "vkuchyn", "github-issue-stat", "@JujaD"); final List timeReports = issueSystem.fetchTimeReports(); System.out.println(timeReports); - final Map map = timeReports.stream() - .collect( - toMap( - TimeReport::getAuthor, TimeReport::getDuration, - (d1, d2) -> Duration.ofMinutes(d1.toMinutes() + d2.toMinutes())) - ); + System.out.println("\nTree issues:"); + + final Map> tree = timeReports + .stream() + .collect(groupingBy(TimeReport::getParentIssueNumber)); + + for (String item : tree.keySet()) { + System.out.println("\nIssue = " + item); + System.out.println("Time by author:"); + final Map durationByAuthor = durationByAuthor(tree.get(item)); + System.out.println(durationByAuthor); + + System.out.println("Time by related issues:"); + final Map durationByIssue = durationByRelatedIssue(tree.get(item)); + System.out.println(durationByIssue); + + System.out.println("------------------------------------------------------------------"); + } + + System.out.println("\nTime by author for all issues:"); + final Map map = durationByAuthor(timeReports); System.out.println(map); } + + private static Map durationByAuthor(List timeReports) { + return timeReports.stream() + .collect( + toMap( + TimeReport::getAuthor, TimeReport::getDuration, + (d1, d2) -> Duration.ofMinutes(d1.toMinutes() + d2.toMinutes())) + ); + } + + + private static Map durationByRelatedIssue(List timeReports) { + return timeReports.stream() + .filter(issue-> ! "FirstIssue".equalsIgnoreCase(issue.getParentIssueNumber())) + .collect( + toMap( + TimeReport::getIssueNumber, TimeReport::getDuration, + (d1, d2) -> Duration.ofMinutes(d1.toMinutes() + d2.toMinutes())) + ); + } + } diff --git a/src/main/java/juja/github/stat/TimeReport.java b/src/main/java/juja/github/stat/TimeReport.java index 3769bcc..f8022d3 100644 --- a/src/main/java/juja/github/stat/TimeReport.java +++ b/src/main/java/juja/github/stat/TimeReport.java @@ -15,13 +15,19 @@ public class TimeReport { private final String text; private String author; private final Duration duration; + private final String issueNumber; + private final String parentIssueNumber; - public TimeReport(String id, String url, String text, String author, Duration duration) { + public TimeReport(String id, String url, String text, String author, Duration duration, + String issueNumber, + String parentIssueNumber) { this.id = id; this.url = url; this.text = text; this.author = author; this.duration = duration; + this.issueNumber = issueNumber; + this.parentIssueNumber = parentIssueNumber; } public String getId() { @@ -44,16 +50,25 @@ public Duration getDuration() { return this.duration; } + + public String getIssueNumber() { + return issueNumber; + } + + public String getParentIssueNumber() { + return parentIssueNumber; + } + @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || this.getClass() != o.getClass()) return false; TimeReport that = (TimeReport) o; return Objects.equal(this.id, that.id) && - Objects.equal(this.url, that.url) && - Objects.equal(this.text, that.text) && - Objects.equal(this.duration, that.duration) && - Objects.equal(this.author, that.author); + Objects.equal(this.url, that.url) && + Objects.equal(this.text, that.text) && + Objects.equal(this.duration, that.duration) && + Objects.equal(this.author, that.author); } @Override @@ -66,9 +81,10 @@ public String toString() { final StringBuilder sb = new StringBuilder("TimeReport{"); sb.append("id='").append(id).append('\''); sb.append(", url='").append(url).append('\''); - sb.append(", text='").append(text).append('\''); sb.append(", duration=").append(duration); sb.append(", author=").append(author); + sb.append(", issueNumber=").append(issueNumber); + sb.append(", parentIssueNumber=").append(parentIssueNumber); sb.append('}'); return sb.toString(); } diff --git a/src/test/java/juja/github/stat/GithubIssueSystemIntegrationTest.java b/src/test/java/juja/github/stat/GithubIssueSystemIntegrationTest.java index 3c9ab96..751efb6 100644 --- a/src/test/java/juja/github/stat/GithubIssueSystemIntegrationTest.java +++ b/src/test/java/juja/github/stat/GithubIssueSystemIntegrationTest.java @@ -17,21 +17,29 @@ public class GithubIssueSystemIntegrationTest { @Test public void fetchTimeReportsFromGithub() throws Exception { - Github github = new RtGithub(); - List reports = new GithubIssueSystem(github, "vkuchyn", "github-issue-stat", "@jujad").fetchTimeReports(); - assertThat(reports, hasSize(3)); +// Github github = new RtGithub("Insert your api code"); + Github github = new RtGithub(); //without token github has small rate limit + List reports = new GithubIssueSystem(github, "vkuchyn", "github-issue-stat", "@JuJad").fetchTimeReports(); + assertThat(reports, hasSize(5)); assertThat(reports, hasItem(new TimeReport( - "220794548", "https://github.com/vkuchyn/github-issue-stat/issues/1#issuecomment-220794548", - "Some text before time report\n@JujaD time spent 10m\nSome text after report", - "vkuchyn", - Duration.ofMinutes(10L) + "220794548", "https://github.com/vkuchyn/github-issue-stat/issues/1#issuecomment-220794548", + "Some text before time report\n@JujaD time spent 10m\nSome text after report", + "vkuchyn", + Duration.ofMinutes(10L), + "1", + "FirstIssue" ))); assertThat(reports, hasItem(new TimeReport( - "220794605", "https://github.com/vkuchyn/github-issue-stat/issues/1#issuecomment-220794605", - "@JujaD time spend 1h65m some text and more 20m", - "vkuchyn", - Duration.ofMinutes(145L) + "220794605", "https://github.com/vkuchyn/github-issue-stat/issues/1#issuecomment-220794605", + "@JujaD time spend 1h65m some text and more 20m", + "vkuchyn", + Duration.ofMinutes(145L), + "1", + "FirstIssue" + ))); + System.out.println(reports); + } } diff --git a/src/test/java/juja/github/stat/mongo/TimeReportMongoDaoTest.java b/src/test/java/juja/github/stat/mongo/TimeReportMongoDaoTest.java index 9bbc9b3..8b330b3 100644 --- a/src/test/java/juja/github/stat/mongo/TimeReportMongoDaoTest.java +++ b/src/test/java/juja/github/stat/mongo/TimeReportMongoDaoTest.java @@ -34,7 +34,7 @@ public class TimeReportMongoDaoTest { @ShouldMatchDataSet(location = "/mongodb/shouldSaveTimeReport-expected.json") public void shouldSaveTimeReport() throws Exception { TimeReport report = new TimeReport("123", "url", "test comment", - "JujaD", Duration.ofHours(2)); + "JujaD", Duration.ofHours(2),"1","FirstIssue"); dao.saveTimeReport(report); } } diff --git a/src/test/resources/mongodb/shouldSaveTimeReport-expected.json b/src/test/resources/mongodb/shouldSaveTimeReport-expected.json index f11a853..ea37989 100644 --- a/src/test/resources/mongodb/shouldSaveTimeReport-expected.json +++ b/src/test/resources/mongodb/shouldSaveTimeReport-expected.json @@ -8,7 +8,10 @@ "duration": { "seconds": 7200, "nanos": 0 - } + }, + "issueNumber":"1", + "parentIssueNumber":"FirstIssue" + } ] } \ No newline at end of file