Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

retrieve issuelinks field value from an issue using Atlassian.jira sdk in C#

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!!

1 answer

0 votes

Hi @Jira Tutorial 

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Why you should move agile planning to Lucidspark’s digital whiteboard

During my 17 years as a coach, mentor, and trainer of Agile teams, I’ve participated in hundreds of Agile planning meetings. The end result was a wall of backlog items annotated by an explosion of co...

102 views 0 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you