Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to send email to users in custom-user-field

Pravin June 20, 2018

Product details:

  • Jira v7.7.1
  • Test Management for Jira (Adaptavist) v4.6.2

Requirement:

Within the add-on "Test Management for Jira (Adaptavist) v4.6.2" I have a custom field User". This is list of users having access to "Test Management for Jira (Adaptavist) v4.6.2". These is not Jira field but custom add-on fields. I want to send a email to username as set in field "User" 

For e.g. 

if I set abc as user in the "User" field, a email should go to abc mentioning that he is mentioned in a "Test case'. The email should also contain link to this "Test Case".

How to do this?

I am not a programmer, but ready to learn whatever the solution asks for.

1 answer

0 votes
Mesut Yilmazyildirim
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 20, 2018

I believe you can do this with Script-Runner add-on (under built-in scripts) (Not tested)

  1. Edit your existing workflow
  2. Choose Add PostFunction
  3. Choose Script Post Function
  4. Choose Send a custom email
  5. Add "User" in the note field
  6. Find out the customfield_id of your User field (this link shows you how to find your customfield id)
  7. Put this value into the "To issue fields" textbox
  8. Choose the Add button and publish the new workflow.
Pravin June 21, 2018

#6: Since this is a custom field from add-on "test management for jira", how to gets is custom_id? (Attaching a screenshot) CustomField-AccentureReviewer.jpg

Mesut Yilmazyildirim
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 21, 2018
  1. go to Administration/Custom Fields
  2. click on the "Configure" link for the custom field you're interested in
  3. in the URL of the Configure Custom Field page, note the number after "customFieldId=" and append it to "customfield_" to build the custom field ID

Suggest an answer

Log in or Sign up to answer