write field on issue returned by JQL

Issue #65 resolved
Former user created an issue

Hi,

Before buy your plugin, i must create this "post-function", i hope that someone could help me ?

I use "Contact Manager plugin" and Email this issue plugin for JIRA DESK HELP

i have 2 projects :

  • Customer relationship Management (CRM) i had stored all information about the customer.
  • Support team (ST) JIRA HELP DESK project

When a external user sends an email, a Mail handler create an issue. "Email this issue" take the email of "To" and write it in "Customer Contact Email" field in ST project.

In ST project there is a custom field for autocomplete the contact of the issue and when we click on it, we have all information stored in CRM project.

With your plugin i want to check the value of "Customer Contact Email" that "Email this issue" has set and search in CRM project if there are something with this value :

Ex: JQL: project = CRM and "Customer Contact Email" ~ "albertini.olivier@gmail.com"

and take the field Contact and write the value in the "Contact" field of ST project.

Because now the support team, check the value of "Customer Contact Email" and rewritte in "Contact" field in order to have an autocomplete and having a link with the issue of CRM project.

Screens post function https://drive.google.com/file/d/0B-VNnyzjQ3cJRHlYTWpOVzF4QW8/edit?usp=sharing

post function details https://drive.google.com/file/d/0B-VNnyzjQ3cJaWt1R1daZGVUeEU/edit?usp=sharing

my configuration doesn't work like that ... why ?

Comments (4)

  1. Fidel Castro Armario repo owner

    Hi,

    I have some questions in order to fully understand your use case:

    1. Is there a field "Customer Contact Email" in both projects CRM and ST?
    2. Is there a field "Contact" in both projects CRM and ST?
    3. In case you don't have information in project CRM about the customer, is there something special to do?

    I need some clarification about the following fragments of your explanation:

    1) "...take the field Contact and write the value in the "Contact" field of ST project."

    Does it mean that field "Contact" exists in both projects?

    2) "Because now the support team, check the value of "Customer Contact Email" and rewritte in "Contact" field in order to have an autocomplete and having a link with the issue of CRM project."

    Is the value of field "Contact" in project "CRM" what you want to write into field "Contact" of project "ST"?

    Regards,

    Fidel

  2. Fidel Castro Armario repo owner

    I explain the way to do it assuming that:

    • You want to write the field Contact in an issue of project ST at the moment of being created.
    • The value to be written is the value of field Contact in an issue of project CRM where the field Customer Contact Email has the same value as the field Customer Contact Email in the issue being created at project ST.

    SOLUTION:

    You have to use post-function "Read field from issues returned by JQL query" with the following configuration:

    Captura de pantalla 2014-08-13 a la(s) 22.01.52.png

    Notice that:

    • %{11900} is the field code for field "Customer Contact Email"

    Once configured, post-function "Create Issue" in the workflow of issues at project "ST" will look like this:

    Captura de pantalla 2014-08-13 a la(s) 22.01.28.png

  3. Fidel Castro Armario repo owner

    I close the issue. Please, reopen it if the solution provided is not working for you.

  4. Log in to comment