Automating Issue Type Based on Email Subject Match

Paul Stewart July 27, 2019

Hi ...

 

I'm trying to automate the issue type when certain subject lines start with a certain set of keywords etc.  In this case I want to match any subject line that starts with "ALERT: xxxxxx" and change the issue type from our email default of Service Request to Incident.

Currently our technicians do this manually in the ticket through the move option but this is prone to errors/mistakes.  I know exactly the conditions we want to match and the "mapping" of the move that needs to occur.

I've tried email handlers and some various plugins and no luck to date ... some folks have told me you simply can't automate it but I'm not ready to give up yet :)

1 answer

0 votes
Thomas Deiler
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 27, 2019

Dear @Paul Stewart ,

you can do what you want by creating your own custom automation rule:

convert.gifNote: you can change the request type only, if the issue type of the new request type is the same.

So long

Thomas

Paul Stewart July 27, 2019

Thank you - I started there however you cannot change the issue type using JIRA automation ... only the request type.  I need to change the issue type in this case.  Thank you.

Thomas Deiler
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 27, 2019

Dear @Paul Stewart ,

the problem is that Request Type : Issue Type is a "many to one" relation. Means, you cannot just change the Issue Type without changing the Request Type.

What you could do, is fire a Webhook, that is calling a script, that moves this issue to another one by calling a REST method.

If this doesn't work you could transition this issue. In the workflow you could call a groovy script moving your issue (with plugin).

So long

Thomas

Paul Stewart July 27, 2019

Thanks .. I"m not a developer but am used to using plugins ... I contacted the folks at Script Runner to see if this is something their plugin could do - just didn't know if there were other options that I should be looking at .... many thanks!

JP _AC Bielefeld Leader_
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.
July 27, 2019

Hi Paul,

using ScriptRunner you can do about everything in Jira...

Best

JP

Herr Stange February 20, 2020

@JP _AC Bielefeld Leader_ 
We use ScriptRunner. Would you please give further instructions? I already know that it is mighty...

JP _AC Bielefeld Leader_
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.
February 20, 2020

Hallo / Hi,

as ScriptRunner is a plugin, you should really get in contact with the Adaptavist people. You can try to contact @Nic Brough -Adaptavist- 

For a starter, try 

https://scriptrunner.adaptavist.com/latest/jira/quickstart.html

Best

JP

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events