Hi,
Iam using the following code to connect with Jira. Getting summary,description,etc., fields successfully for each issue. But unable to retrieve values for fields issuelinks, Attachments, Activity. Are there any classes or interfaces to access these fields using Atlassian.Jira package?
using Atlassian.Jira; namespace JiraResultsApp { class Program { static void Main(string[] args) { Jira jiraConn = new Jira("http://yourjiraurl.com/", jUserID, jPassword); string jqlString = PrepareJqlbyDates(); IPagedQueryResult<Atlassian.Jira.Issue> jiraIssues = jiraConn.Issues.GetIssuesFromJqlAsync(jqlString, 999).Result; foreach(var issue in jiraIssues) { System.Console.WriteLine(issue.Key.Value +" -- "+ issue.summary); } } static string PrepareJqlbyDates() { string jqlString = "project = PRJ"; return jqlString; } } }
How to get field values of issuelinks, Attachments and activity fields for each issue.
Thank you!!
Since you are using REST API, you need to use the correct end point to fetch issue details.
Try this end point.
JIRAURL/rest/api/3/issue/ISSUEKEY
In your code you must be getting list of issues based on the JQL, when you parse individual issue use the end point above to get further details of the issue.
Ravi
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.