Skip to content

Commit

Permalink
Merge pull request #135 from atlascommunity/JD-1929
Browse files Browse the repository at this point in the history
Jd-1929 Export templated CF in REST API
  • Loading branch information
mashintsev authored Feb 10, 2022
2 parents 468f26c + 7251e5a commit ef39c51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>ru.mail.jira.plugins</groupId>
<artifactId>groovy</artifactId>
<version>1.21.16-jira8</version>
<version>1.21.17-jira8</version>
<organization>
<name>AtlasTeam</name>
<url>https://atlasteam.ru/</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import ru.mail.jira.plugins.groovy.util.CustomFieldHelper;

import javax.annotation.Nullable;
import java.util.HashMap;
import java.util.Map;

@Scanned
Expand Down Expand Up @@ -60,7 +61,7 @@ public JsonType getJsonSchema(CustomField customField) {
}

@Override
public FieldJsonRepresentation getJsonFromIssue(CustomField customField, Issue issue, boolean b, @Nullable FieldLayoutItem fieldLayoutItem) {
return new FieldJsonRepresentation(new JsonData(null));
public FieldJsonRepresentation getJsonFromIssue(CustomField field, Issue issue, boolean b, @Nullable FieldLayoutItem fieldLayoutItem) {
return new FieldJsonRepresentation(new JsonData(field.getColumnViewHtml(fieldLayoutItem, new HashMap<>(), issue)));
}
}

0 comments on commit ef39c51

Please sign in to comment.