SOAP : create issue type

Hi

Is it possible to create IssueTypes remotely using SOAP.

I did not find a method to create issue types in Soap service. Here is what I have ...

private static void testCreateIssueType(JiraSoapService jiraSoapService, String token)
            throws RemoteException
    {
		RemoteIssueType rist = new RemoteIssueType();
		rist.setName("soapremoteissuetype");
		rist.setDescription("This is issue type created by soap");
	jiraSoapService.create
		
    }

A related question, can we create screens and screen schemes using SOAP.

Thanks for your help.

Abe

3 answers

1 accepted

1 vote

No.

This is a really simple one to answer actually - read the SOAP API docs and if you can't find a function that does it in there, then you can't do it with SOAP. See http://docs.atlassian.com/rpc-jira-plugin/latest/com/atlassian/jira/rpc/soap/JiraSoapService.html

Of course, if you write your own plugin to provide a SOAP service, you can add/extend functions in that and then use them remotely.

Thanks for the answer Nic.

I am trying to merge my jira instances and creating a program to do the merge.

I can now see that Priorities, IssueTypes, Screens, ScreenSchemes cannot be created using SOAP. Any ideas how this can be done programatically?

Please let me know.

Thanks

Abe

Create your own SOAP interface, look at using REST to do it, or even scripting with plain http(s) posting to admin screens.

Write plugins that can do the work internally (e.g. an admin function to import a list from your data source), or can read remote Jira systems and synchronise their issue type lists.

However, for issue types, I'd think about how much work it really is to do it by hand - if you've got 20 issue types to add and it's a one off, do you really want to put in that much effort to do something that's going to take you 20 minutes to plough through?

0 vote
rist.setIssueType(IssueTypeID); Where the IssueTypeID can be found in Issues > Issue Types, and check the Edit link. For example, the default ID for Improvement issue type is 4.

Hi Zulfadli

Thanks for response.

I would like to create new IssueType, why would I need to set an existing issuetypeid.

Please let me know.

Thanks

Abe

Ahh I must have misunderstood you. I thought you wanted to create issue with specifiying issue type. Sorry

Do everthing manually once, check out the HTTP POST requests and use wget to automate this. Do not forget to store the cookies and also to pass the extra token parameter in the requests (you can get the token in the cookie)

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

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

118 views 4 9
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