You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I would like to change the issue type after receiving the ticket with scriptrunner.
The workflow is different from the entrance workflow but it is the same project.
The tickets are automatically created in the service desk by a mail handler. However, a different issuetype should be selected for one customer.
Do you have any ideas?
Many thanks for your help.
Moving issues via scriptrunner or JAVA api is not trivial.
Think of all the steps you have to go through when you move an issue manually.
All those steps would have to be accounted for in a move script without the opportunities to prompt the users for many critical pieces of information.
I haven't seen anyone implementing this successfully (and I haven't dared to try myself).
I think using a "Clone Issue And Link" or "Create Sub-task" post-function script as suggested in another answer will be your best bet. Both of those come with a "Condition" code block where you can examine the reporter's email address and decide whether or not to execute the function.
The condition script could be as simple as
Just that single line will return either true (execute the function) or false (skip the function)
The rest of the function parameters are all form-driven, so no coding required.
Hi @Alexander Herrler ,
I am sure that the post-function of Sub-task creation can be done based on condition using Script runner. You may need to check how to identify issues created via emails. May be if the description has the email address of the sender, you need to validate the description field for the email address.