Issue Details (XML | Word | Printable)

Key: JRA-7272
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Anton Mazkovoi [Atlassian]
Reporter: Jeff Turner [Atlassian]
Votes: 15
Watchers: 8
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
JIRA

Workflow editor should allow AND/OR/NOT logic when specifying conditions

Created: 08/Jul/05 04:52 AM   Updated: 02/May/07 01:42 AM
Component/s: Workflow
Affects Version/s: None
Fix Version/s: 3.6

Time Tracking:
Not Specified

Issue Links:
Duplicate
 
Reference
 

Participants: Anton Mazkovoi [Atlassian], Jeff Turner [Atlassian], João Paulo Campello and Nick Menere [Atlassian]
Since last comment: 2 years, 33 weeks, 4 days ago
Resolution Date: 12/Apr/06 11:14 PM
Labels:


 Description  « Hide
"One additonal improvement to conditions, permissions and customisations to workflows would be to allow combinations of transition conditions to use AND, OR and NOT logic.

Presently, each time a condition is added to a transition, Jira uses the AND logic.


Two additional handy conditions would be:

"progressor belongs to same group(s) as:

  • reporter
  • assignee
  • resolver"

and

"User is NOT in Group"

These permission/conditions would of course have to be applied with care (for a reporter, assignee and resolver can and often do belong to multiple groups).

The permission and conditions could be implemented as customisations, but it would be much nicer if they came standard."



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Nick Menere [Atlassian] added a comment - 26/Sep/05 09:15 PM
OSWorkflow allows for the OR condition (http://www.opensymphony.com/osworkflow/3.7%20Conditions.html). You can currently use this though the XML must be manually editied.

João Paulo Campello added a comment - 10/Apr/06 07:15 PM
Hi Nick,

Would you please give us more directions on what's the XML file needed to be edited and what changes have to be made so it's possible to use 'OR' logic conditions instead of only 'AND' ones?

Thanks in advance,

João Paulo.


Anton Mazkovoi [Atlassian] added a comment - 12/Apr/06 11:07 PM
You will need to change the "type" attribute of the "conditions" tag from AND to OR:
<conditions type="AND">
   <condition type="class">
      <arg name="class.name">com.atlassian.jira.workflow.condition.PermissionCondition</arg>
      <arg name="permission">Resolve Issue</arg>
   </condition>
   <condition type="class">
      <arg name="class.name">com.atlassian.jira.workflow.condition.PermissionCondition</arg>
      <arg name="permission">Close Issue</arg>
   </condition>
</conditions>

Anton Mazkovoi [Atlassian] added a comment - 12/Apr/06 11:14 PM
Changing the type from AND to OR is possible in JIRA 3.6.

OS Workflow, the workflow engine JIRA uses does not currently support NOT operator. If you need support for the operator please create a new feature request.

Thanks,
Anton


João Paulo Campello added a comment - 13/Apr/06 09:13 AM
Very nice, Anton.

Now, I'm just waiting for JRA-2753 to be resolved =)

Thanks a lot.