JIRA is now available as three separate applications, JIRA Software, JIRA Service Desk, and JIRA Core. For more information on administering these applications, refer to the Administering JIRA Applications documentation.

Plugin Developer Notes for JIRA 4.4

On this page:


JIRA 4.4 introduces several changes that may break existing plugins which are not bundled with JIRA.

If you are using or have been involved in the development of such a plugin, it may need to be updated to work with JIRA 4.4. Please read through the information below to see if any of this content is relevant to your plugin.

If you are using a plugin developed by a third party, please check with the plugin's author to see if the plugin has been tested with JIRA 4.4.

(info) Please Note:

  • This is not the complete list of changes for JIRA 4.4 — it only describes changes in JIRA 4.4 that will impact plugin developers.
  • For details about which versions of Atlassian's Plugin Development Platform and its components (such as the Plugin Framework, Shared Access Layer (SAL), Atlassian User Interface (AUI) and the Atlassian REST Plugin) are included in JIRA 4.4, please refer to Plugin Development Platform Version Matrix​.


The PluggableProjectOperation interface allows plugin developers to add links to the project admin section. For example:

These plugin points are now rendered in a different location within JIRA. While the plugins will continue to render they will not look very nice. For example:

To make the plugins fit into the new panel the markup they generate will have to change. The new template looks something like:

This markup is encapsulated in DefaultPluggableProjectOperation. You can extend this class and provide implementations of the getLabelHtml and getContentHtml methods in your plugin. For example:

This class should isolate you from small changes to the markup necessary to show your operation on the project summary page.

Formatting and Parsing Dates Using the Appropriate Time Zone

JIRA 4.4 introduces the concepts of user time zone and default user time zone. JIRA will attempt to use the user time zone when displaying dates to a user and similarly when interpreting dates entered by the user. If a user has not specified a time zone in their user profile, JIRA will fall back to the default user time zone, which can be configured by a JIRA administrator.

(Note: Date fields, which have no time component, such as due dates, release dates (associated with versions) and custom date fields, solely record date information (and no time zone-related information), and therefore remain in the default server timezone. If plugins are displaying these values, they might be inconsistent with JIRA otherwise, especially if they use OutlookDate which applies the user timezone.)

In order to provide a consistent user experience, plugins that target JIRA 4.4 should be mindful of the time zone that is in use when parsing and formatting dates. It is not enough to instantiate a java.text.SimpleDateFormat or a org.joda.time.format.DateTimeFormatter class, as these classes will use the default JVM time zone and locale, which may not necessarily match the user's specified time zone in JIRA.

From JIRA 4.4, the recommended way of formatting and parsing dates is to use a com.atlassian.jira.datetime.DateTimeFormatter. Here is a plugin class example that creates a couple of formatters when the plugin is started, for use at a later point in time:

Notes About OutlookDate and its Deprecation

The OutlookDate class has been retrofitted to account for the new user time zone and default user time zone concepts. Hence, plugins that use this class to display and parse time zones will automatically take on this new user time zone behaviour. While this is generally the desired behaviour, plugin developers can override the time zone and locale used in the com.atlassian.jira.datetime.DateTimeFormatter class.

OutlookDate has been deprecated and will be removed in a future version of JIRA. We encourage plugin writers to port their plugins over to the new com.atlassian.jira.datetime.DateTimeFormatter API as soon as possible.

Single- and Multi-Select Custom Field Changes

Since the following single- and multi-select custom fields are now editable, you should be aware of the changes below which may affect your plugins.

  • Select List
  • Multi Select
  • Cascading Select
  • Radio Buttons
  • Multi Checkboxes

See JRA-2983 for more information about this JIRA improvement.

Database Changes

There are two database changes that result from this improvement:

  1. We now store the ID (as opposed to the literal value) of the custom field option in the customfieldvalue table.
  2. We have added a 'disabled' flag to the customfieldoption table. When this flag is set to 'true' for a given option, that option is not available for selection when creating or editing an issue. You should honour this behaviour when using or extending your single- and multi-select custom field types. Disabled values are still available for searching.

Effect on Existing Plugins

This improvement will affect plugins that provide custom fields (of type select or multi-select) which reuse or extend the following classes:

  • com.atlassian.jira.issue.customfields.impl.SelectCFType and
  • com.atlassian.jira.issue.customfields.impl.MultiSelectCFType

If your plugin extends these types, you may need to adjust its behaviour. Velocity templates for editing and searching should be adjusted to accept and return the custom field option ID in the value attribute.

If your plugin consumes the output of the com.atlassian.jira.issue.Issue.getCustomFieldValue() you should be aware that this method now returns a com.atlassian.jira.issue.customfields.option.Option object rather than a String for Select or MultiSelect custom fields. You can use the Option.toString() method to make your pugin compatible with both JIRA 4.4 and earlier versions.

Please note:

  • Only select and multi-select custom field types are affected by this change. Any custom fields of these types will continue to operate correctly, as the database will be updated during the upgrade to 4.4. Third party custom field types that extend the select and multi-select custom field types may break, but that depends upon their implementation, for example if they provided different templates for viewing or editing these would need to be updated.
  • Plugins that provide custom field types that extend select and multi-select custom field types, can build a plugin that is compatible with both JIRA 4.3 and JIRA 4.4 but that may not be practical in some cases and it may be easier to have separate versions.

Restrictions on the Alias Names of plugin Webwork Actions

In JIRA 4.4 we have restricted the alias names that you can use for your Webwork actions in a small way. It can't start with 'webwork.'. So for example you cant have an action aliased as 'webwork.MyAction.jspa'.

We did this because for performance reason Webwork calls down to all layers to find webwork properties such as 'webwork.action.prefix' and so on as well as trying to find action aliases. This results in hundreds of calls to plugins for an answer we never intended that they answer. So we have limited the times they will be asked via this string matching rule.

View Issue Content & Project Admin Summary is now Pluggable via Web Panels

We have converted the right-hand side of the View Issue page and the entire Project Admin Summary page to use Web Panels for rendering content. This has enabled us to make this a plugin point for plugin writers.

The location for the webpanel needs to be: "atl.jira.view.issue.right.context" for the View Issue page. In JIRA 5.0 we aim to make the left hand side pluggable as well.

(tick) For the Admin Project Summary page use "webpanels.admin.summary.left-panels" or "webpanels.admin.summary.right-panels".

Here is how the Time Tracking block is created:

In this example:

  • The context provider, TimeTrackingViewIssueContextProvider, populates the context for the velocity template.
  • The velocity template, timetracking.vm, is responsible for rendering the block.
  • The label provides the label for the block.
  • The conditions are evaluated to determine if we should show the block.

The Web Panel is responsible for providing the content inside the "module" chrome. The module chrome provides the block heading (from the Web Panel label), the collapsable states and further plugin points for the header. If you do not wish to have this chrome rendered for you (e.g. you may just want to include some javascript on the page), you need to specify the following inside your module descriptor:

This will just put the exact output of your Web Panel into the page.

The additional plugin points the common chrome provides are:

Adding action icons to the header

These are actually just styled up Web Items.

The location is: "<web-panel-full-key>/header". 

Here is how we render the "Add Attachment icon":

Note the styleClass in this example as it is responsible for styling the link as an icon.

Adding links to the dropdown.

You can also add Web Items to the dropdown of a block.

The default location of these are: "<web-panel-full-key>/drop/default".
E.g. "com.atlassian.jira.jira-view-issue-plugin:attachmentmodule/drop/default"

Adding sections to the dropdown

You can also define Web Sections for the dropdown, to group Web Items together.

The location for these are: "<web-panel-full-key>/drop".
E.g. "com.atlassian.jira.jira-view-issue-plugin:attachmentmodule/drop"
To add Web Items to these sections, use the location: "<web-panel-full-key>/drop/<section-key>".
E.g. "com.atlassian.jira.jira-view-issue-plugin:attachmentmodule/drop/attachment-sorting-options"

Web-fragments and the administration navigation changes

Traditionally navigation in the administration part of JIRA was done in a huge list of links down the left hand side of the page. We have moved to having an administration mode with menus at the top of the page. These menus follow a new, simpler way to generate themselves and web-items and web-sections in existing plugins will need to be updated to fit with the new structure. Unchanged web-items will still show in the menus, all together at the bottom of the "Plugins" menu.

The new structure follows the rules:

  • Any level of web-section can have both or either web-items and web-sections in it.
  • The location attribute for a web-section is the web-section it is inside of.
  • The section attribute of a web-item is the locationOfTheSection/section.

The new structure has the new location of system.admin.top.navigation.bar and a section for each menu at that location. There are 2nd level web-sections for each menu under that. 3rd level web-sections for each section within a menu and 4th level web-sections so that a set of web-items that will appear as tabs at the side will appear as a single item in the top level menus, this menu item will link to the web-item with the lowest weight in that web-section.

It is strongly recommended to put all plugins web-sections and web-items in the Plugin menu (location admin_plugins_menu) and we have created some predefined sections to put you to use:

Section Name

web-item's section attribute

web-section's location attribute

Source Control



























 Adding web-items and sections to these new sections means they will also be rendered in the administration summary page.

The Source Control and Builds sections of the Plugins menu are shown below:

And example of adding a web-item for Bamboo Configuration to the Builds section would be:

If you want to keep your plugin compatible with versions of JIRA prior to 4.4, you can add a condition to your existing web-item for older versions of JIRA so that it will only show up for them. For example in the Bamboo Plugin we have a web-item:

With the IsPriorToJiraVersion is:

Tab navigation in admin section

To ensure that the new admin decorator can highlight the correct dropdown in the header and render the correct tabs on the left hand side, the page being decorated needs to tell the decorator which admin section it belongs to. This is done through the use of <meta/> tags.

For example the JIRA FishEye plugin provides three admin web-items to be rendered under the 'Source Control' section:

In order for this to work correctly, the page source for the FishEye Configuration page has to include the following <meta/> tags to tell the new admin decorator which tabs to render:

<meta name="admin.active.section" content="admin_plugins_menu/source_control">
<meta name="admin.active.tab" content="fisheye_config">

These meta tags will have to be included on every one of your admin pages and will have to refer back to the web-items you defined earlier.

Plugging in to the new Project Administration 

This is fairly similar to the integrating with the new project tab look and feel.

To add content to the Summary tab, see above.

Instead it is a simple web-section//web-item, for example:

Or you can use the inbuilt sections - projectgroup1, projectgroup2, projectgroup3, projectgroup4
Then add a web-item to it.

That is enough to add your tab.

To then wrap your content with the project config decorator and have the right tab selected, your content should have the following in its header:

First create a tab group (web-section) you want to add to:

or you can use an existing section (weights are in brackets after sections & items):

  • projectgroup1 (10) - Contains Summary(10)
  • projectgroup2 (20) - Contains Issue Types(10), Workflows(20), Screens(30) & Fields(40)
  • projectgroup3 (30) - Contains People(10), Permissions(20), Issue Security(30) & Notifications(40)
  • projectgroup4 (40) - Contains Versions(10) & Components(20)

Add a web-item to your section.

Now you will have a tab in Project Configuration. The link should point to some content.  This can be provided by a WebWork Action, REST resource or Servlet.

To then wrap your content with the project config decorator and have the right tab selected, your content should have the following in its header:

These meta tags will have to be included on every one of your project admin pages

Version-related Atlassian Events

The following new Atlassian Events are available in JIRA 4.4:

  • VersionMergeEvent
  • VersionDeleteEvent
  • VersionCreateEvent
  • VersionReleaseEvent
  • VersionUnreleaseEvent
  • VersionArchiveEvent
  • VersionUnarchiveEvent
  • VersionMoveEvent

See JIRA-specific Atlassian Events for a complete list.

Gadget Web-Resources

As of JIRA 4.4 gadgets should no longer depend on the com.atlassian.jira.gadgets:common web resource. This change was introduced in JIRA 4.3, however due to some changes to the gadgets framework in JIRA 4.4 gadgets still depending on this web-resource will now break.

Instead gadgets should only need to rely on the more lightweight com.atlassian.jira.gadgets:common-lite web resource.

For more information, please refer to JRA-25039.

As of JIRA 4.4, all plugin modules are now dynamically reloadable

Traditionally some of the modules were bearing the @RequiresRestart annotation, which indicated that installing plugins containing such modules required a full restart of JIRA. As of JIRA 4.4 each plugin module is capable of being dynamically added and removed from the running JIRA instance. This has some important implications for the plugin developers, encapsulated by the following recommendations:

  • avoid using static caches or statically accessible components (the singleton pattern) in your plugins - use component module type instead
  • avoid manipulating / storing class loaders and threads in your plugin components - this may potentially lead to memory leaks given your plugin is installed and taken down from running JIRA instance multiple times
  • the following life-cycle interfaces are available for your components to implement and will be called upon relevant plugin life cycle events:
    • org.springframework.beans.factory.InitializingBean - its afterPropertiesSet() method will be called each time the Spring context for given plugin is created, i.e. each time the plugin is enabled. NOTE this method is called immediately after given component instance is created and fully initialized, and not after the plugin has been fully enabled. In fact, when the whole plugin system is starting (as opposed to just your plugin being enabled), this is likely to be called before the plugin system has been initialized. Therefore you cannot rely on the plugin system state when implementing this interface. The preferred way in such case is to listen to Atlassian plugin framework events and use this method to only to register itself with the EventPublisher
    • org.springframework.beans.factory.DisposableBean - its destroy() method will be called when the component is being destroy as its Spring context is being removed. Similarly to the InitializingBean, implementing classes cannot rely on the state of the plugin system (e.g. calling other components within destroy() may cause exceptions as those components may have already be removed from the destroyed context). Please use this method sparingly, e.g. to unregister the component from the EventPublisher, and otherwise use the plugin framework events instead
    • com.atlassian.sal.api.lifecycle.LifecycleAware (see javadoc) - called when the plugin system starts up
  • avoid implementing com.atlassian.jira.extension.Startable in you plugins, it is meant to be used by internal JIRA components only and its support for plugins will soon be removed.

REST API Changes in JIRA 4.4 (from JIRA 4.3)

Retrieving a List of Groups

You can now retrieve a list of all groups in a JIRA installation, as well as a filtered list of groups matching a specified 'query' substring using the following HTTP GET action on:

  • http://hostname/rest/api/2.0.alpha1/groups/picker

For example, http://hostname/rest/api/2.0.alpha1/groups/picker?query=admin will retrieve a list of groups containing the 'admin' substring. Refer to the REST API documentation for more information.

Deleting a Watcher from an Issue

To delete a watcher from an issue, the REST API call format has changed.

For example, to delete a user with username 'fred' from issue 'PROJ-123', you would use the following formats:

  • In JIRA 4.3 (and earlier) — http://hostname/rest/api/2.0.alpha1/issue/PROJ-123/watchers/fred
  • In JIRA 4.4 (and later) — http://hostname/rest/api/2.0.alpha1/issue/PROJ-123/watchers?fred

Refer to the REST API documentation for more information.

Create, Read, Update or Delete Project Components

You can create, read, update or delete project components using the following REST calls:



Create a project component

HTTP POST on http://hostname/rest/api/2.0.alpha1/component http://docs.atlassian.com/jira/REST/4.4/#id2475780

Read/get a project component along with the total number of issues with that component

HTTP GET on http://hostname/rest/api/2.0.alpha1/component/{id}/relatedIssueCounts http://docs.atlassian.com/jira/REST/4.4/#id2475988

Read/get a detailed list of information about a project component

HTTP GET on http://hostname/rest/api/2.0.alpha1/component/{id} http://docs.atlassian.com/jira/REST/4.4/#id2475844

Modify a project component

HTTP PUT on http://hostname/rest/api/2.0.alpha1/component/{id} http://docs.atlassian.com/jira/REST/4.4/#id2475844

Delete a project component

HTTP DELETE on http://hostname/rest/api/2.0.alpha1/component/{id}?moveIssuesTo http://docs.atlassian.com/jira/REST/4.4/#id2475844
(You can assign any issues associated with the project component being deleted (i.e. {id}) to another component specified as the value of the moveIssuesTo parameter.)

Create, Read, Update or Delete Project Versions

You can create, read, update or delete project versions using the following REST calls:



Create a project version

HTTP POST on http://hostname/rest/api/2.0.alpha1/version http://docs.atlassian.com/jira/REST/4.4/#id2474955

Read/get a list of information about a project version

HTTP GET on http://hostname/rest/api/2.0.alpha1/version/{id} http://docs.atlassian.com/jira/REST/4.4/#id2475026

Read/get a project version along with the total number of issues fixed and affected in that version

HTTP GET on http://hostname/rest/api/2.0.alpha1/version/{id}/relatedIssueCounts http://docs.atlassian.com/jira/REST/4.4/#id2475180

Read/get a project version along with the total number of unresolved issues in that version

HTTP GET on http://hostname/rest/api/2.0.alpha1/version/{id}/unresolvedIssueCount http://docs.atlassian.com/jira/REST/4.4/#id2475234

Modify a project version's sequence within the project

HTTP PUT on http://hostname/rest/api/2.0.alpha1/component/{id}/move http://docs.atlassian.com/jira/REST/4.4/#id2475287

Delete a project version

HTTP DELETE on http://hostname/rest/api/2.0.alpha1/version/{id} http://docs.atlassian.com/jira/REST/4.4/#id2475026

Date Format Improvements

Due dates and custom field dates are now only parsed/presented in a simple year, month and day format. Additional timezone-specific content is no longer required, nor expected.

Was this helpful?

Thanks for your feedback!

Why was this unhelpful?

33 Archived comments

  1. User avatar

    Matt Doar (ServiceRocket)

    Nick, that looks very cool! Could you add something about how to use it in a plugin?

    10 May 2011
  2. User avatar

    Micha Kops

    Sounds nice! Some sample xml for the atlassian-plugin.xml would be great :)

    27 May 2011
  3. User avatar

    Matt Doar (ServiceRocket)


    I'm very (very) happy to see that all modules are now reloadable! However I fear that the only way developers will really understand the lifecycle events is with a minimal plugin that logs what happens as it is loaded and unloaded. Please would you consider putting a small demo up somewhere.


    06 Jun 2011
    1. User avatar

      Dariusz Kordonski [Atlassian]

      Hi Matt,

      thanks for your feedback!

      We understand that what we included here is not enough, in particular in light of the changes we made to make plugins reloadable in runtime. This is just a first cut at getting plugin developers more aware of how to write robust, reloadable plugins, in particular in case they need to do 'fancy' stuff like subscribing to framework events. Putting together a sample plugin (or a collection of such), similar to your awesome Webwork Sample is high on our list!

      06 Jun 2011
  4. User avatar

    Leonid M.

    avoid implementing com.atlassian.jira.extension.Startable in you plugins, it is meant to be used by internal JIRA components only and its support for plugins will soon be removedLink

    I assume removedLink should point to something

    29 Jun 2011
    1. User avatar

      Dariusz Kordonski [Atlassian]

      Not really, we just meant that the support of Startable in plugins will be removed in near future, very likely in JIRA 5.0. I don't know how the 'Link' suffix sneaked in there, I am sorry for confusion and thank you for pointing that out!

      29 Jun 2011
  5. User avatar

    Viðar Svansson

    Looks like FieldLayoutManager.getFieldLayout(GenericValue) no longer throws FieldLayoutStorageException.

    Do you have a solution that is compatible with JIRA 4.2-3?

    19 Jul 2011
    1. User avatar

      Mark Lassau [Atlassian]

      If you compile against JIRA v4.2, then just continue to catch the FieldLayoutStorageException and deal with it as you were.
      If you use this compiled .jar against JIRA v4.4 then it will still work fine, its just that the FieldLayoutStorageException will never be thrown.

      FieldLayoutStorageException was only used as a wrapper around either GenericEntityException or DataAccessException.
      These both just mean "a DB error has occured" - and there is probably not anything useful you can do to recover in the unlikely event that your DB access is lost.

      The JIRA standard for DB access exceptions is to throw a RuntimeException (DataAccessException) and let it go to the 500 page.
      We have moved FieldLayoutManager to do this too.

      04 Aug 2011
  6. User avatar


    Can you give an example how to specify a web-section that is within the predefined sections? We would like to have our own section under the timetracking_section but our experiments have not been successful. What we can do is define our own top level section under plugins and put our items there but we need examples for 3level navigation.

    Also, how can a section have the label displays on the top of the section page? When I navigate to "CVS modules" it displays a "Source Control" header. But for our custom section it displays no header at all.

    20 Jul 2011
    1. User avatar

      Viðar Svansson

      Sorry forgot to log in.

      20 Jul 2011
      1. User avatar

        Viðar Svansson

        Another thing. When you navigate to a web-item (Alias!default.jspa), JIRA displays a navigation for the section on the left. When you perform a command on the web-work (Alias!save.jspa), the navigation is not displayed. 

        20 Jul 2011
  7. User avatar


    New SOAP methods for JIRA 4.4. include:






    I have the complete JDiff report of the JIRA SOAP changes between 4.3 and 4.4 RC3 if you want it.


    22 Jul 2011
    1. User avatar

      Matt Doar (ServiceRocket)

      Now I've logged in, I've just attached the JDiff report to this page.


      22 Jul 2011
  8. User avatar

    Viðar Svansson

    Regarding ID values for custom fields.

    Does this feature mean that all custom fields implemented prior to JIRA 4.4 will break? 
    Will plugins that implement custom fields and upgrade to this new structure no longer be compatible to older JIRA versions (e.g., JIRA 4.3)?

    25 Jul 2011
    1. User avatar

      Trevor Campbell [Atlassian]

      Only select and multi-select custom field types are effected by this change. Any custom fields of these types will continue to operate correctly, the database will be updated during the upgrade to 4.4. Third party custom field types that extend the select and multi-select custom field types may break, but that depends upon their implementation, for example if they provided different templates for viewing or editing these would need to be updated.

      Plugins that provide custom field types that extend select and multi-select custom field types, can build a plugin that is compatible with both JIRA 4.3 and JIRA 4.4 but that may not be practical in some cases and it may be easier to have separate versions.

      25 Jul 2011
      1. User avatar


        what are the changes in select CFtype in 4.4.5 and how to get the default value in 4.4.5 for the custom field.


        thanks in advance.

        27 Nov 2012
        1. User avatar

          Trevor Campbell [Atlassian]

          The changes are that in JIRA 4.4 we store the id of the custom field object rather than its value in the database for an issue. This allows the values to be updated if required.  This is explained here.

          To get the default value(s) for a select or multiSelect custom field, once you have an instance of the custom field us:


          You need to provide an issue object, because the default may vary according to the project and issue type.  This will return an Option object or a Collection<Option> for a Select and MultiSelect respectively.

          14 Dec 2012
  9. User avatar

    Viðar Svansson

    It seems that the new gadget resource is not working as expected. Dashboard outputs a lot of errors to the console. Examples:

    1. Uncaught ReferenceError: AJS is not defined
    2. Uncaught TypeError: Object function () { var res = null; if (arguments.length && typeof arguments[0] == "string") { res = arguments.callee.$(document.createElement(arguments[0])); if (arguments.length == 2)

      Unknown macro: { res.html(arguments[1]); }

      } return res; } has no method 'describeBrowser'

    The result is that gadget controls do not work (but the gadgets works just fine).

    27 Jul 2011
    1. User avatar

      Scott Harwood

      That gadget resource should work. Are you able provide a copy of your gadget xml please? I will take a closer look.


      07 Aug 2011
      1. User avatar

        Viðar Svansson

        It looks like com.atlassian.jira.gadgets:jira-global and/or jira.webresources:issue-table conflicted with com.atlassian.jira.gadgets:common-lite. 

        This setup of web-resources works for us in JIRA 4.2 to 4.4:






        I am not quite sure why this is the case. We need to CSS for tables and this way it works on all JIRA versions.

        08 Aug 2011
        1. User avatar

          Scott Harwood

          This is a known bug JRA-25039

          The problem is that jira-global & common resources depend on separate versions of AJS, a lite & complete version which conflict with each other.

          To avoid this issue until bug is resolved, ensure that you only include 1 version of AJS. If your using any resources from jira-core that have a dependency on com.atlassian.auiplugin:ajs, you will need to depend on com.atlassian.jira.gadgets:common in your gadget. Otherwise it is safe to use com.atlassian.jira.gadgets:common-lite.

          Apologies for the frustrations this must have caused. This will be fixed as part of our 5.0 release.

          08 Aug 2011
  10. User avatar

    Viðar Svansson

    Regarding custom field types:

    We have a custom field that was sadly created a long time ago as a select field but is essentially a text field with a custom view that is a select box. Unfortunately the JIRA 4.4 update process wipes out the data in this field, bringing havoc to our customers!

    Can you please change the process so that if you don't find an id for the value, you simply leave the old custom field value instead of writing null and corrupting the instance.

    We have released a new version that is compatible with JIRA 4.4. However, JIRA 4.4 does allow users to update even if the plugin does not support JIRA 4.4. That mean we have no way of ensuring that our customers don't break their system because of this issue.

    Please help since our customers are upgrading to JIRA 4.4 with an incompatible version of our plugin and thus destroying their data.

    10 Aug 2011
  11. User avatar

    Rafal Habrat

    On the page you said "If your plugin consumes the output of the com.atlassian.jira.issue.Issue.getCustomFieldValue() you should be aware that this method now returns a com.atlassian.jira.issue.customfields.option.Option object rather than a String".

    My question is whether this change affects com.atlassian.jira.issue.Issue.setCustomFieldValue() method in any way? It used to accept Strings for Select Custom Fields but it appears it no longer works as the code I use to create issues no longer persists the value of Select Custom Fields in the new version when Strings are used to set the value. I also tried passing the ID of the field option but it did not work either.

    19 Aug 2011
    1. User avatar

      Rafal Habrat

      I think I can answer my own question - it does indeed affect com.atlassian.jira.issue.Issue.setCustomFieldValue()  as it now requires that the com.atlassian.jira.issue.customfields.option.Option is supplied when invoking this method on select or multi select custom field types.

      An instance of an Option class can be retrieved with the following code:

      where OPTION_ID is the identifier assigned to the option value being set for the custom field.

      It would have saved me and likely others some time if the above details where described on the page.

      22 Aug 2011
  12. User avatar

    Viðar Svansson

    Regarding time zones.

    When you log work in the Log Work dialog, the start date seems to be UTC. The JIRA instance is configure to use New York time.

    1. Is this expected behavior?
    2. Does JIRA store all dates in UTC regardless of configuration of the server. 
    3. Is this new in 4.4? 
    4. For plugins targeting 4.x, should they stop using SimpleDateFormater and use OutlookDate to ensure proper display of dates in the JIRA 4 series?
    22 Aug 2011
    1. User avatar

      Mark Lassau [Atlassian]

      1. This works for me as expected.
      That is, the start date uses the configured time zone of the logged in user.
      Perhaps your user has UTC configured for their personal time zone?
      If you still see a problem, raise a support ticket.

      2. Effectively yes.

      3. Time zones are new in 4.4
      The date storage format has not changed, we just format the date in the user's timezone when we convert it to a String.

      4. Actually we would probably have always recommended you should use OutlookDate (via OutlookDateManager).
      OutlookDate has been retro-fitted with some TZ awareness in v4.4
      Moving forward, we would recommend you use DateTimeFormatterFactory for full TZ compatibility, but this is new in v4.4
      If you really want to do your own date formatting, you can use TimeZoneManager to get the current user's TZ.

      23 Aug 2011
      1. User avatar

        Viðar Svansson

        Thank you Mark.

        We realize that OutlookDate is recommended but have yet used it due to legacy reasons. The next logical step would then to skip OutlookDate and move directly to DateTimeFormatter.

        23 Aug 2011
  13. User avatar

    Giles Gaskell

    FYI - many of the pluggable components of JIRA's UI (which are outlined above) have now covered in detail in our updated Web Fragments guide.

    31 Aug 2011
  14. User avatar

    Ajaykumar Gupta

    Hi All ,

           We are getting unexpected value from SelectCFType fields with Search Template Multi Select Searcher . Those fields which Type are SelectCFType with Search Templete Select List Searcher gives correct values .

     Option options = (Option)issue.getCustomFieldValue(customfield); // No Error for both Condition

    I think all Option are stored in the customfieldoption table.

    I observed when we get values from  SelectCFType [ fields with Search Template Select List Searcher]  then All Option are stored in customfieldoption and it values seem like that

    select * from customfieldoption where customfield=10640; // Correct , all option

    But , when we do same thing with Multi Select Searcher Search Template then it fetch values  seem like that

    select * from customfieldoption where id=10640; // incorrect , Unexpected option .


    Please help us ,








    01 Feb 2012
    1. User avatar

      Trevor Campbell [Atlassian]

      Hi Ajaykumar, 

      I am sorry but I don't understand what you are trying to do and what the problem is.  Could you explain further please.

      Yes, all options are stored in the customfieldoption table and this is the same whether the "Select List Searcher" or "Multi Select Search" is used.

      02 Feb 2012
  15. User avatar

    José Peñalba Morales

    Hi all,

    Has anyone confirmed "Tab navigation in admin section" stills works as expected on JIRA 5?

    I have no luck with metas sugested:

    <meta name="admin.active.section" content="admin_plugins_menu/source_control">
    <meta name="admin.active.tab" content="fisheye_config">

    What is more, I have not seen any plugin where the dropdown or the section header is shown correctly (for example Fisheye plugin, only the first option is shown as expected).

    03 Sep 2012
    1. User avatar

      José Peñalba Morales

      I finally got it working (both dropdown and tab selection). Maybe this can help someone stuck with this like me (this is tested at Jira 5.0.6):

      At the velocity template, I placed the meta tag inside <html><header> and everything else at a <body> tag, as if it were a full page and not a fragment. For example:


      <meta name="admin.active.section" content="admin_plugins_menu/MYPLUGIN_section" />
      <meta name="admin.active.tab" content="MYPLUGIN_link" /></head><body>


      Actually, I have tested it with Atlassian Fisheye Plugin 5.0.7. I modified the template:


      Inserting <html>, <head> and <body> and the section header (version control) magically apeared!

      04 Sep 2012
Powered by Confluence and Scroll Viewport