Skip to content

Commit

Permalink
for fields that should not show up in the change history for an issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
JensPiegsa committed Nov 26, 2019
1 parent 6bf2407 commit d649a1f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
/**
* see: https://community.atlassian.com/t5/Jira-questions/How-to-avoid-to-track-changes-in-history-for-a-custom-field/qaq-p/448406
* see: https://developer.atlassian.com/server/jira/platform/creating-a-custom-field-type/
* see: https://community.atlassian.com/t5/Answers-Developer-Questions/How-do-I-change-the-Type-of-a-Custom-field/qaq-p/507030
*/
@Scanned
public class UnversionedTextCFType extends RenderableTextCFType {
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/atlassian-plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@
key="unversionedtextfield"
class="jira_rest_essentials.UnversionedTextCFType">
<description>A text field without history</description>
<resource name="view" type="velocity" location="templates/plugins/fields/view/view-basictext.vm"/>
<resource name="edit" type="velocity" location="/templates/edit.vm"/>
<resource name="xml" type="velocity" location="templates/plugins/fields/xml/xml-basictext.vm"/>
</customfield-type>
</atlassian-plugin>
3 changes: 3 additions & 0 deletions src/main/resources/templates/edit.vm
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#controlHeader ($action $customField.id $customField.name $fieldLayoutItem.required $displayParameters.noHeader)
<input type="text" name="$customField.id" value="$!value" />
#controlFooter ($action $fieldLayoutItem.fieldDescription $displayParameters.noHeader)

0 comments on commit d649a1f

Please sign in to comment.