Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • We wanted to create a new Jira project and see what flexibility we have on what we can automate.. for example I wanted to see if we could do a request type where we auto-generate certain subtasks with respective assignees.

Need Help with Mail Handlers!!!

Angie Affolter
Contributor
January 7, 2022

We have a mail handler setup that takes incoming emails and creates issues for a new subject and adds a comment for an existing issue. 

It's been "working" for a long time, HOWEVER, when folks reply to the email notification from Jira, the comment that is added includes their new text as well as everything underneath it.  

We've tried every option (except ScriptRunner) we can't seem to strip out the junk.   Some of the ones that should work, like the two that start with "add a comment" don't add new issues.  

Has anyone solved this?  Will ScriptRunner do the trick?  Does anyone have a script that would a) add a new issue for new subjects and b) add just the new text for existing issues?

We've been working with Jira and will reach out to Adaptavist but if someone has the answer please share!!  THANK YOU!!

1 answer

0 votes
Nic Brough -Adaptavist-
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 Champions.
August 31, 2016

I'd use an add-on to provide a "create sub-task on transition" function.  They're post-functions, blocks of code that run after a transition has been chosen.  There's quite a few add-ons that provide those functions, ranging from simple ones that just create the basics, through to scripting add-ons which allow you to write whatever code you want in there (so you can do clever things like read what the user has entered and create one sub-task for each component they've selected, or create a batch of them with different pre-determined assignees, and so-on)

Smriti Priya
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 1, 2016

Hi Nic, Is there another way to complete this task without using add-on?

 

Nic Brough -Adaptavist-
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 Champions.
September 1, 2016

There's no built-in post-functions to do it, but some of the add-ons that provide one are free.

 

Smriti Priya
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 1, 2016

Thanks Nic.

Prasad Eda
September 8, 2016

Hi Nic,

Could you please let me know that Add-on names. So that i will check it in Test Environment once everything is good then i will do it in production environment.

Thanks in Advance!

Regards,

Prasad Eda

Prasad Eda
September 11, 2016

Hi Nic,

As requested please let me know some Add-on names so that first i will check it in Test Environment.

Regards,Prasad Eda

Nic Brough -Adaptavist-
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 Champions.
September 11, 2016

I'd usually do it with the Script Runner.  There are others in the marketplace - a search for "create subtask" should find them.

Suggest an answer

Log in or Sign up to answer