Identifying a CC in an email to incorporate in an automation rule

I am receiving automated emails in Jira and creating automation rules to process - prioritize, close, etc. issues based on the email subject line and who sent it. Is it possible to identify the CC of an email to make an automation rule. For example, if an email address - johnsmith@co.com is CC's on email, close the issue? I have tried writing a rule for the Description and Summary and have not been successful.

1 answer

1 accepted

I did some testing here, and I think it is possible to do this with automation, but it might be somewhat tricky to do. I will try to explain in more detail.

I started in my Jira Service Desk cloud project, and created an automation rule specific to that project. This was a custom rule type. In my rule I selected the trigger to be "Participant added to issue" and then set a condition to use the advanced JQL string of "Request paricipants"="example_user@example.com"

When doing this you can then set the action to be a transition. In my case I choose a transition called "Resolve the issue" which will resolve the issue.

My automation rule looks like this:

And I can confirm, when I then emailed back to the creation of a ticket, and added that specific email address as a CC to the message, Jira Service Desk did transition this issue into the correct transition as per this rule.

The reason this works is because Service Desk is automatically going to add users in the CC field of an email to the 'request participants' field of an issue, provided that user already has an account on this service desk, or the service desk is setup to create new accounts for such interactions. This is one way you could probably make this work.

Just understand that this would not only work for email processing, but it is possible if someone in the customer portal or the main Jira site adds that specific user to the requested participants it too would trigger this automation rule. It is not specifically geared only towards email processing of messages.