Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-36316

Ability to define a condition for each post function

XMLWordPrintable

    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.

      Currently JIRA runs each post-function of a transition unconditionally. The only way to provide conditions is to define multiple transitions separated by conditions. This would lead to an exponentially growing number of alternate transitions as number of post-functions (and conditions) grow.

      It would be useful if we could define condition(s) for individual post-functions of a single transition. Something like:
      1-Run post-function A
      2-Run post-function B if user is in group X.
      3-Run post-function C if (mycustomfield = Y and user is in role Z)

      There are some add-ons in the market that introduce post-functions that have conditions. But those conditions apply only to those specific post-functions. If JIRA supports conditions then all post-functions, both system and add-on, can become conditional.

      The same mechanism and library for transition conditions can be used. This way any new transition condition functions introduced by an add-on could also be used for post-function conditions.

      I don't know the inner workings of JIRA of course but I believe this could be implemented without breaking anything else and would give much more power and flexibility to the already powerful JIRA workflow engine.

              Unassigned Unassigned
              0fc80be2b556 Emre Toptancı [OBSS]
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: