简体   繁体   中英

How to connect Jira using Atlassian.SDK from .Net application (c#)

I am using Atlassian.SDK Jira SDk to connect Jira from my .NET application . To connect JIRA I have the following calls but it does not connect to Jira properly .I am getting unauthorized access exception

        var  jira = Jira.CreateRestClient("https://xxxxx.atlassian.net", "xxxxx.xx@xxx.com", "xxx@xxx");


        CreateIssue(jira);

    public async void CreateIssue(Jira jira) {

        var issue = jira.CreateIssue("RBT");
        issue.Type = "Bug";
        issue.Priority = "Major";
        issue.Summary = "Issue Summary";

        await issue.SaveChangesAsync();
    }

which is the correct way to establish the connection .Also,How can i query all the created Issues

假设您正在使用Jira云实例(基于您的实例名称),不推荐使用密码进行基本身份验证(请参阅公告 ),请确保在执行基本身份验证时使用email:apiToken对。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM