Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

General discussion
  1. OpenProject
  2. Forums
  3. General discussion
  4. Create tickets from e-mails with Custom field

Create tickets from e-mails with Custom field

Added by Tomás M 12 months ago

Create tickets from e-mails with  Custom field

Hello, greetings to all and thanks in advance for your help.
I am configuring the option to create and update work packages, for now it works, at least the part that creates new tasks does so without problems. I have used the following guide: https://www.openproject.org/docs/installation-and-operations/configuration/incoming-emails/ and even though there is a section explaining in very superficial ways, how to add information to the custom fields , I have not been able to do it.

openproject run bundle exec rake redmine:email:receive_imap host='imap.gmail.com' username='test_user' password='password' port=993 ssl=true ssl_verification=true allow_override=type,project project=test_project

I tried with: Custom field:, Custom_field_3=Test Requester=test , etc, etc. I have tried this by adding the configuration to openproject run bundle exec rake. If any of you know how to do it, I will greatly appreciate it. Greetings


Replies (3)

RE: Create tickets from e-mails with Custom field - Added by Tomás M 11 months ago

I guess my ticket did not arouse the interest of the community that visits this forum

:(

RE: Create tickets from e-mails with Custom field - Added by Alexander Stock 11 months ago

Hi Tomás,

great that you already managed to create new work packages via e-mail. I just tried it by myself. The custom field type you used (usuario) looks up a user account by the ID of that user account. 

That's the way it worked for me:

  • Created new custom field called "User Custom Field" type = user (= "usuario")

  • Added that custom field to a work package type (= Bug)

  • Then, I sent a e-mail, plain text, as you did before using the ID of a user account that is member of the project I wanted to add a work package to. I used this format:

project: your-scrum-project

type: Bug

status: New

User Custom Field: 5

This is a new work package. 

This created a new work package and added the user account with the ID 5 ⤵️

How to quickly look up the user account id:
Navigate to administration -> users and permissions -> users and click on a user name.
The URL then contains the ID of this user -> https://youropenproject.domain/users/1

I hope this helps you using custom fields within your workflow.
Best,

Alexander

RE: Create tickets from e-mails with Custom field - Added by Tomás M 11 months ago

Thank you for your response, but what I would like to do is have the emails that arrive in the account automatically fill in certain fields. I do this with the command openproject run bundle exec rake. I use the command with the instructions you provided, but it doesn't work. I must be doing something wrong.

openproject run bundle exec rake redmine:email:receive_imap host='imag.gmail.com' username='test_user' password='password' port=993 ssl=true ssl_verification=true allow_override=type,project project=soporte-ti no_permission_check=1 type=Ticket priority=normal assigned_to=Sistemas/TI status=Nuevo Solicitante Custom Field=3

  • (1 - 3/3)
Loading...