Hello,
I am looking for solution for 2 days already...
I need to take the values of specific custom field (Text field type) with rest (c# syntax).
I need to take those values to all of the issues in specifix project.
This is my URL: https://BaseURL:PORT/rest/api/latest/search?jql=project=%22ProjectKey%22 - enter JSON with all of the issues in the project.
I need to connect Jira with user+pass..
Please, this is an urgent issue.
BR,
Daniel
Hi @Dan27
I think your first (and hopefully only ) problem is that you shouldn't be using password, you need to use an API token (see this). You didn't say what error you're getting or what is wrong, but using a password should result in a 401 error (authentication).
You can also try via Postman (either online or download the app) - once it's working in Postman, you can then try to get your code working.
Here is an old post where I give some C# code which will work as long as you replace username with a Jira e-mail address and password with an API token.
hi. You can try Atlassian.Net SDK (https://bitbucket.org/farmas/atlassian.net-sdk/wiki/Home)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you @Roman Kersky ,
I tried:
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
var jiraurl = "https:/BaseURL:PORT/rest/api/latest/search?jql=project=%22XXX%22";
var login = "user";
var password = "password";
var jira = Jira.CreateRestClient(jiraurl, login, password);
Console.WriteLine(jira);
}
}
}
But I didn't get nothing.. What am I doing wrong?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.