Forums

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

How to use CRM field in automation?

Anna Grace
May 8, 2023

Hi all,

We have CRM field Company and we want to use its value as a condition in jira task automation. We need to automaticaly edit tasks in depending of the company chosen. But we are not able to select this field  - it's not in the list of fields. 

Can you suggest me how to solve this?

kind regards,

Anna

1 answer

1 vote
Deleted user
June 18, 2018

Hello,

In detail, I want to save in a custom field *only* the other senders of the email *without* the email cc.

 Can you please be more specific about what addresses you want to store?

By Default if JEMH is configured to store addressee addresses in a custom field, this will include all To: addresses that do not match the catch email address, in addition to the CC'd addresses.

If you only want to store the sender address that can be achieved via JEMH Profile -> Email -> Sender Processing -> Non-JIRA user sender address to Text custom field

For further discussion, please create a support request with us directly: The Plugin People - Jira

Kind Regards,

Reece

Chiara Squilloni
Contributor
June 21, 2018

Thank you Reece,

for example I create a JEMH profile that polling the email test.jira@somedomain.com

If for example we send an email:

from sender@somedomain.com

to: test.jira@somedomain.com; me@somedomain.com; you@somedomain.com

cc: cc1@somedomain.com; cc2@somedomain.com; cc3@somedomain.com

I configured the JEMH profile in the email section:

Sender processing: non jira-user Assign non jira-users Email to Text CustomField     Email Sender
Addressee Processing:
Assign non jira-user Email to Text CustomField     EmailTo

CC Email Custom Field     Email CC

But in the emailTo I find not only me@somedomain.com and you@somedomain.com but also the CC addressee (cc1.. ecc).

I want to store only the to recipient.

Deleted user
June 21, 2018

If you only want to store the to address, you can achieve this via JEMH Custom Field Defaults

Using a dynamic velocity scripted value for your custom field default, you can store the incoming to addresses by using the following script:

#foreach ($recipient in $message.getHeader("To"))
$recipient
#end

 If you require any further assistance, please raise an issue in our Jira directly: The Plugin People - Jira

 

Kind Regards,

Reece

Chiara Squilloni
Contributor
June 21, 2018

Thank your Reece, I will try this!

Suggest an answer

Log in or Sign up to answer