Feature #27070

Allow setting "Parent issue" attribute in emails

Added by Brandon Tarney 10 months ago. Updated 3 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Email receiving
Target version:4.0.0
Resolution:Fixed

Description

Feature: Set the "Parent task" of an issue generated via email to redmine.

Context: I am able to set project, tracker, priority, status, element, and estimated time fields but not "Parent task" by using colon-separated fields in the body of the email. I am able to set "Parent task" manually on-creation of a redmine issue or when editing an issue, so I know this functionality works in my current redmine setup.

i.e. I send the following email-body to redmine, and it properly sets all fields except "Parent task"

Description: Trying to set parent task as part of this email-generated redmine ticket
Project: test-project
Tracker: Task
Priority: 3 - Normal
Status: New
Parent Task: 10871
Element: Data Management
Estimated time: 9
Parent task: 10871
Parent Task: 10871
parent: 10871
Parent: 10871
Parent_Task: 10871
Parent_task: 10871
Parent_Id: 10871
Parent Id: 10871
Parent_id: 10871
Parent id: 10871

add_parent_issue.patch Magnifier (3.16 KB) Mizuki ISHIKAWA, 2018-04-11 06:09


Related issues

Related to Redmine - Feature #19732: create subtask from mail Closed

Associated revisions

Revision 17304
Added by Go MAEDA 3 months ago

Allow setting "Parent issue" attribute in emails (#27070).

Patch by Mizuki ISHIKAWA.

Revision 17305
Added by Go MAEDA 3 months ago

Fix mistakenly tampered fixture file (#27070).

History

#1 Updated by Toshi MARUYAMA 10 months ago

  • Category set to Email receiving

#2 Updated by Toshi MARUYAMA 10 months ago

  • Description updated (diff)

#3 Updated by Mischa The Evil 10 months ago

FTR & FWIW: this request arose from Set 'Parent task' attribute via email issue creation (and indirectly from Incoming email - Parent Issue).

#4 Updated by Go MAEDA 10 months ago

  • Assignee set to Go MAEDA
  • Target version set to Candidate for next major release

I think this feature should have been implemented along with #443.

#5 Updated by Go MAEDA 10 months ago

#6 Updated by Go MAEDA 10 months ago

  • Assignee deleted (Go MAEDA)

#7 Updated by Mizuki ISHIKAWA 3 months ago

I wrote a patch to set the "parent task" attribute by email.

example:

parent issue: 1(id of parent issue)

You can also use the following key.
  • parent issue
  • Parent issue
  • parent_issue
  • String set in "field_parent_issue" in the language you are using.
    • In the case of en: Parent task
    • In the case of fr: Tâche parente
    • In the case of ja: 親チケット

#8 Updated by Go MAEDA 3 months ago

  • Target version changed from Candidate for next major release to 4.1.0

Mizuki ISHIKAWA wrote:

I wrote a patch to set the "parent task" attribute by email.

LGTM, setting target version to 4.1.0.

#9 Updated by Go MAEDA 3 months ago

  • Subject changed from Set 'Parent task' attribute via email issue creation to Allow setting "Parent issue" attribute in emails
  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Target version changed from 4.1.0 to 4.0.0
  • Resolution set to Fixed

Committed. You can set parent issue in incoming emails by using "Parent issue" or other language dependent keywords (e.g. "Parent task", "Tâche parente", "親チケット", etc).

Thank you for your contribution.

Also available in: Atom PDF