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.

How to show a transition only when the Assignee is different from the Current User

This solution is particularly useful when your workflow has a restriction on assigning issues. For example, certain users can only assign an issue to themselves by executing a transition, and you want the "Assign to Me" action to be visible only if the Current User is not yet the Assignee of the issue.

The content on this page relates to platforms which are not supported by JIRA. Consequently, Atlassian cannot guarantee providing any support for it. Please be aware that this material is provided for your information only and using it is done so at your own risk.

Let us consider the assigning scenario. To show the "Assign to Me" transition only when the Assignee is different from the Current User, execute the following steps:

  1. Download and install the Jira Scripting Suite plugin. See the Installation&Upgrade Guide.
  2. Create a draft of your workflow so you can change it. See Configuring Workflow - Editing an active workflow.
  3. Go to the "Assign to Me" transition and add a "Jython Condition". In the "Add Parameters To Condition" screen, paste the following lines of code and click "Add".
  4. Publish the changes to your workflow.

This was tested in JIRA 4.0.2.

See also How to Allow Users to Assign Issues Only in a Specific Transition.

Was this helpful?

Thanks for your feedback!

Why was this unhelpful?

1 Archived comment

  1. User avatar

    Byron Orpheus

    As of this writing the Jira Scripting Suite plugin doesn't support JIRA 5.1.x. The most recent version, v2.0.0, is only compatible with JIRA 5.0 - JIRA 5.0.7. There is no word on when an update will be available.

    06 Nov 2012
Powered by Confluence and Scroll Viewport