Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57630

Support Multi User Picker custom field parameter mapping for email address

    Details

    • Type: New Feature
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: jira-trigger-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.164.3
      JIRA-trigger-plugin 1.0.0
    • Similar Issues:

      Description

      Hi team, I have used JIRA-trigger-plugin, it's a great job. I have some difficulties, I need to get some values from custom field, such as emailAddress.

      But when I mapping, it only show the key. I have try 10103.emailAddress, etc, not work.

      Could you help me to get this values?

      Many thanks

        Attachments

          Activity

          Hide
          ceilfors Wisen Tanasa added a comment -

          Thanks for the confirmation. I've converted this issue as a new feature. Feel free to contribute!

          For a workaround, you can always use the injected JIRA_ISSUE_KEY environment variable, then hit JIRA and get the information by yourself.

          Show
          ceilfors Wisen Tanasa added a comment - Thanks for the confirmation. I've converted this issue as a new feature. Feel free to contribute! For a workaround, you can always use the injected JIRA_ISSUE_KEY environment variable, then hit JIRA and get the information by yourself.
          Hide
          deakey Deakey Tan added a comment -

          Oh, sorry for late, I have resolve this case, use the script to extract the data I need, but I am still looking forward to your new features.

          Many thanks

          Show
          deakey Deakey Tan added a comment - Oh, sorry for late, I have resolve this case, use the script to extract the data I need, but I am still looking forward to your new features. Many thanks
          Hide
          ceilfors Wisen Tanasa added a comment -

          Deakey Tan Can you help share the solution / script that you're using here? It'll be very helpful for the community if they come across a similar requirement.

          Show
          ceilfors Wisen Tanasa added a comment - Deakey Tan Can you help share the solution / script that you're using here? It'll be very helpful for the community if they come across a similar requirement.
          Hide
          deakey Deakey Tan added a comment -

          Yes. In fact, after we set up Custom Field, we will get a result like "aaa, bbb", so I used a shell script to add a mailbox suffix to them.(Because I use Execute Shell to build)

          array_user_email=($1)
          for element in ${array_user_email[@]};
          do user_email=$(echo $element"@yourdomain.com"|sed 's/,//g')
          

           

          Show
          deakey Deakey Tan added a comment - Yes. In fact, after we set up Custom Field , we will get a result like "aaa, bbb", so I used a shell script to add a mailbox suffix to them.(Because I use Execute Shell to build) array_user_email=($1) for element in ${array_user_email[@]}; do user_email=$(echo $element "@yourdomain.com" |sed 's/, //g' )  
          Hide
          ceilfors Wisen Tanasa added a comment -

          Thanks for sharing them here

          Show
          ceilfors Wisen Tanasa added a comment - Thanks for sharing them here

            People

            • Assignee:
              ceilfors Wisen Tanasa
              Reporter:
              deakey Deakey Tan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: