How to set jira issue type with script runner (2nd post)

Hi The previous question by Adolfo Casari (Feb 15, 2013) which was marked as solved, pointed to a post which no longer exists.



I am stuck trying to change an issue type (via script runner) when it is created in the project via automation. 


2 answers

1 accepted

2 votes

The post does exist, it's just that Atlassian in their wisdom put the post in

But let's just assume that all the answers I've made over the last 10 years that had "development" tags have been lost so we'll start again.,

Changing the issue type is "moving" the issue. You may be able to use issue.setIssyeType(...) if you use that in the first post-function on Create transition.

Hi Jamie. Thank you for your response.

I was able to get it working with your suggestion and then using 

Hi @Jamie Echlin [Adaptavist] @Samuel J Meddows did you were able to solve this? I need the same,  I have to change issue type of an issue in order to change the workflow. Can you please provide me the script that you use? 
Thanks a lot!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira Service Desk

How the Telegram Integration for Jira helps Sergey's team take their support efficiency to the bank

...+ reading Fantasy). The same is true for him at the bank he works for: Efficiency is key when time literally equals money. Read on to learn how Sergey makes most of the time he has by...

340 views 2 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you