Jira Create Проблема бросает ошибку: < /p>
[
{
"errorMessages": [ "Issue does not exist or you do not have permission to see it." ],
"errors": { }
}
]
Запрашивая Get On: https://mazimzada.atlassian.net/rest/ap ... allобразно https://mazimzada.atlassian.net/rest/ap ... elds=%2AAL ON: https://mazimzada.atlassian.net/rest/ap ... etaобразно Содержание: < /p>
Ответ get with with: notfound имеет ответный элемент. ].using Jira.Rest.Sdk;
using System;
class Program
{
static void Main(string[] args)
{
var jiraService = new JiraService(
"https://**.atlassian.net/",
"**",
"**",
isCloudVersion: true
);
try
{
try
{
var projects = jiraService.ProjectsGet();
var getIssue = jiraService.IssueGetById("SAGOL-5");
foreach (var project in projects)
{
Console.WriteLine(project.Key);
}
}
catch (Exception e)
{
Console.WriteLine(e);
}
var meta = jiraService.IssueMetadataGet("POC");
foreach (var issueMetadata in meta)
{
Console.WriteLine(issueMetadata.Metadata);
}
var newIssue = jiraService.IssueCreate(
projectKey: "POC",
issueType: "Story",
summary: "Build new interface for model B",
description: "Provide your detailed description for the issue",
priority: "High",
parentKey: "POC-99");
Console.WriteLine($"New issue created: {newIssue.Key}");
}
catch (Exception ex)
{
Console.WriteLine($"Error creating issue: {ex.Message}");
}
}
}
Подробнее здесь: https://stackoverflow.com/questions/796 ... -fix-error