Skip to end of banner
Go to start of banner

How to customize - JSP customization to control fields

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Advanced customization

This should only be used by experienced administrators who are familiar with JSP programming.

Ignore fields

In most cases, using the ignoreFields capability documented in Clone properties is sufficient for most use cases requiring field control. Therefore JSP customization can be avoided.

JSPs to be discontinued

Future versions of Clone Plus for Jira will not support JSPs. See and watch
Error rendering macro 'jira' : Unable to locate Jira server for this macro. It may be due to Application Link configuration.
.

Description

By default, the fields that show on the clone issue details screen are from the create issue screen with some fields hidden based on other customization options. This page documents a technique to explicitly list the fields that show up for a clone operation. This can be used with a custom clone operations (see other information) or to replace the default clone plus details jsp (be careful!).

Steps

  1. Make a copy of the cloneplus-details.jsp
  2. Edit the jsp
  3. Find the issuefields.jsp section
  4. Comment out that section
  5. Insert something like the following customized for the fields to be displayed

    <%-- A customization alternative is to add fields individually --%>
    <%-- Comment out the issuefields.jsp section and replace with custom set similar to the following --%>
    <%--
    <ww:property value="/fieldScreenRenderLayoutItem('summary')/createHtml(/, /, /issueObject)" escape="'false'" />
    <ww:property value="/fieldScreenRenderLayoutItem('assignee')/createHtml(/, /, /issueObject)" escape="'false'" />
    <ww:property value="/fieldScreenRenderLayoutItem('fixVersions')/createHtml(/, /, /issueObject)" escape="'false'" />
    <ww:property value="/fieldScreenRenderLayoutItem('priority')/createHtml(/, /, /issueObject)" escape="'false'" />
    <ww:property value="/fieldScreenRenderLayoutItem('duedate')/createHtml(/, /, /issueObject)" escape="'false'" />
    <ww:if test="applicationProperties/option('jira.option.timetracking') == true">
    <ww:property value="/fieldScreenRenderLayoutItem('timetracking')/createHtml(/, /, /issueObject)" escape="'false'" />
    </ww:if>
    <ww:property value="/fieldScreenRenderLayoutItem('description')/createHtml(/, /, /issueObject)" escape="'false'" />
    --%>
    
  • No labels