I'm using the Atlassian SDK from the following location: https://bitbucket.org/farmas/atlassian.net-sdk
Right now, I'm simply trying to connect to my JIRA and just bring down some basic information like my tasks. Doing a quick google I found the following example: https://www.codeproject.com/Tips/762516/Connecting-to-Jira-using-Csharp
In the above link, he connects to JIRA using the following line:
Jira jiraConn = new Jira("http://yourjiraurl.com/", jUserID, jPassword);
But when I try the same line:
Jira jira = new Jira(url, "admin", "password");
I get the following errors:
cannot convert from 'string' to 'Atlassian.Jira.ServiceLocator'
cannot convert from 'string' to 'Atlassian.Jira.JiraCredentials'
cannot convert from 'string' to 'Atlassian.Jira.JiraCache'
I've looked around to try and find some documentation on this, but I can't find anything relating to any of the 3 errors or what sort of syntax it is expecting. I would investigate the bitbucket more, but my works firewall has it blocked for unknown reasons.
Does anyone have any experience on combating these errors?
Jira helps teams plan, assign, track, report, and manage work and brings teams together for everything from agile software development and customer support to start-ups and enterprises. Software teams build better with Jira Software, the #1 tool for agile teams.
JIRA is a web-based project management system and issue tracking system that can be customized to support any type of workflow or business process. Jira Software is an edition of JIRA that incorporates features of the Scrum framework, an agile methodology for software development teams.
Change Request is an issuetype for Jira Service Management. You can only use the approvals part of a JSM flow in JSM, in case your manager was going to try and use it in a Jira Software project..
Jira is a web application written in Java. It is deployed as a standard Java WAR file into a java Servlet Container such as Tomcat .
As the prototype for Jira is:
Jira(ServiceLocator services, JiraCredentials credentials = null, JiraCache cache = null)
Then the errors you are getting are correct (strings are not JiraCredentials). So either you need to create some credentials or you could use the other function:
public static Jira CreateRestClient(string url, string username = null, string password = null, JiraRestClientSettings settings = null)
So, something like:
Jira jira = Jira.CreateRestClient(url, "admin", "password");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With