Comments (1)
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)
- The basic example throws a 405 HOT 4
- Disable avatar bitmap functionality HOT 8
- client.Issue.SearchAsync Expand on "names" Not Possible HOT 7
- Custom drop down fields? HOT 10
- JiraConfig.ExpandGetIssue HOT 8
- Reference SVG in Dapplo.Jira HOT 2
- Support for "fields" in GetIssue HOT 1
- Support for IssueField "SecurityLevel" HOT 4
- Get Issue with Comments (renderedFields) HOT 2
- JIRA cloud API v3 support
- Failed Tests HOT 20
- Can a parent be set for a subtask? HOT 1
- Get Worklogs by User HOT 3
- Optimizable items, about uploading attachments
- Form designer breaking with Dapplo.Jira installed HOT 10
- Is there a way to get the parent key for an issue HOT 4
- User impersonation HOT 4
- Issue Creation Problem
- Filter issues by custom fields
- tls 1.2 or 1.3 support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dapplo.jira.