Giter VIP home page Giter VIP logo

Comments (1)

Lakritzator avatar Lakritzator commented on September 28, 2024

By default result of a search is limited to the bare minimum, this is called a digest, needed to work with the issue. On the other hand, if you do a var issue = await Client.Issue.GetAsync(issueKey); the custom fields are there.

It's possible to customise the search in such a way that this information is returned, although this puts a higher load on the server. Still if you are going to retrieve the custom fields for every found issue anyway, you are probably better off getting the information in the search itself.

In the search you can specify what fields to use, this would for instance work:
var searchResult = await Client.Issue.SearchAsync(Where.Project.In(args[3]), fields: new[]{"*all"});
The default when you don't specify the fields yourself, is specified in https://github.com/dapplo/Dapplo.Jira/blob/master/src/Dapplo.Jira/JiraConfig.cs#L75

You could set your own specific (custom) fields for every search, do this once:
JiraConfig.SearchFields = JiraConfig.SearchFields.Concat(new [] {"customfield_10370", "customfield_10371" }).ToArray();

After this, every search will include the specified (custom) fields, if they exist. Be aware: the names of the custom fields must NOT be the same over multiple JIRA installations!

A bit more information about the fields: https://community.atlassian.com/t5/Answers-Developer-Questions/API-JQL-search-results-provide-way-too-much-information/qaq-p/486398

Let me know if this helps!

btw... if possible do not use the API in a non async way.

from dapplo.jira.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.