Skip to content

Commit ef39c51

Browse files
author
Ivan Mashintsev
authored
Merge pull request #135 from atlascommunity/JD-1929
Jd-1929 Export templated CF in REST API
2 parents 468f26c + 7251e5a commit ef39c51

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>ru.mail.jira.plugins</groupId>
66
<artifactId>groovy</artifactId>
7-
<version>1.21.16-jira8</version>
7+
<version>1.21.17-jira8</version>
88
<organization>
99
<name>AtlasTeam</name>
1010
<url>https://atlasteam.ru/</url>

src/main/java/ru/mail/jira/plugins/groovy/impl/cf/TemplateScriptedCFType.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import ru.mail.jira.plugins.groovy.util.CustomFieldHelper;
1616

1717
import javax.annotation.Nullable;
18+
import java.util.HashMap;
1819
import java.util.Map;
1920

2021
@Scanned
@@ -60,7 +61,7 @@ public JsonType getJsonSchema(CustomField customField) {
6061
}
6162

6263
@Override
63-
public FieldJsonRepresentation getJsonFromIssue(CustomField customField, Issue issue, boolean b, @Nullable FieldLayoutItem fieldLayoutItem) {
64-
return new FieldJsonRepresentation(new JsonData(null));
64+
public FieldJsonRepresentation getJsonFromIssue(CustomField field, Issue issue, boolean b, @Nullable FieldLayoutItem fieldLayoutItem) {
65+
return new FieldJsonRepresentation(new JsonData(field.getColumnViewHtml(fieldLayoutItem, new HashMap<>(), issue)));
6566
}
6667
}

0 commit comments

Comments
 (0)