Project

General

Profile

Auto assign ticket based on category

Added by Johan Marchán over 7 years ago

hi,
When a ticket is created using redmine and given a category, it gets automatically assigned to an agent to solved it. It doesn't happen when a ticket it's fetched from the email server.
In that case, the ticket takes the category but it remains unassigned even using the same category.

Is that a feature or a bug?


Replies (1)

RE: Auto assign ticket based on category - Added by Mischa The Evil over 7 years ago

Hmm... I don't think it is either of both. I think it's more a kind of yet undefined behaviour. The 'problem' is either:
  • that the Issue#default_assign before_create callback isn't triggered when a new issue object is created from MailHandler#receive_issue using:
    issue = Issue.new(:author => user, :project => project)
    attributes = issue_attributes_from_keywords(issue)
    <snip>
    issue.safe_attributes = attributes
    <snip>
    issue.save!
    
  • or the Issue#default_assign before_create callback fails to handle the email issue creation case properly.

Either way, I am not aware of issues in the redmine.org pool which talk/mention about this specific issue. Therefor I'd recommend you to open a new issue (I suggest the feature tracker) to get it logged/discussed/picked-up.
In my opinion, the auto assign based on issue category behaviour should be uniform across the different ways of creating issues (web, e-mail, API), as far as it is feasible.

    (1-1/1)