hash[:effortToFix] = issue.effortToFix.to_f if issue.effortToFix
hash[:reporter] = issue.reporter if issue.reporter
hash[:assignee] = issue.assignee if issue.assignee
+ hash[:author] = issue.authorLogin if issue.authorLogin
hash[:actionPlan] = issue.actionPlanKey if issue.actionPlanKey
hash[:creationDate] = Api::Utils.format_datetime(issue.creationDate) if issue.creationDate
hash[:updateDate] = Api::Utils.format_datetime(issue.updateDate) if issue.updateDate
return JsonUtils.getString(json, "assignee");
}
+ /**
+ * SCM account
+ */
+ @CheckForNull
+ public String author() {
+ return JsonUtils.getString(json, "author");
+ }
+
@CheckForNull
public String actionPlan() {
return JsonUtils.getString(json, "actionPlan");
assertThat(first.message()).isEqualTo("the message");
assertThat(first.effortToFix()).isEqualTo(4.2);
assertThat(first.reporter()).isEqualTo("perceval");
+ assertThat(first.author()).isEqualTo("pirlouis");
assertThat(first.actionPlan()).isEqualTo("9450b10c-e725-48b8-bf01-acdec751c491");
assertThat(first.creationDate()).isNotNull();
assertThat(first.updateDate()).isNotNull();
assertThat(second.line()).isNull();
assertThat(second.effortToFix()).isNull();
assertThat(second.reporter()).isNull();
+ assertThat(second.author()).isNull();
assertThat(second.attribute("JIRA")).isNull();
assertThat(second.attributes()).isEmpty();
assertThat(second.comments()).isEmpty();
"message": "the message",
"title": "the title",
"reporter": "perceval",
+ "author": "pirlouis",
"actionPlan": "9450b10c-e725-48b8-bf01-acdec751c491",
"creationDate": "2013-05-18T12:45:34+0200",
"updateDate": "2013-05-18T13:45:34+0200",