Excluding properies for JIRA JQL search using REST API - jira

I am using JIRA rest api for jql search. It says we can filter out fields using fields parameter. Is there a way we can filter out properties from a particular field. eg. field assignee has many properties. But I am interested only in property displayName. Is there a way we can filter out all other properties?

Is there a way we can filter out all other properties?
There is no way to hide other properties of assignee.

JQL will search all properties inside the assignee field to check if something is matching. So it should work out-of-the-box, for example assignee = "John Smith", in this case John Smith is the display name.

Related

Connecting to People Search through Tableau?

We are creating a report that would need employee information. We have the employee ID, but we are also looking for the name and office location. Is it possible to have tableau hit people search to pull this information?
You can use Wildcard Match Filter Function to do so.
Then, when you type employee ID in the search box, it will filter it out to dashboard.

Creating JQL query on Jira that will pull tickets from multiple projects

I'm trying to create a JQL query that will pull tickets from 3 separate projects, with the same field.
So I wanna get all tickets that have the field month= 'May' from project1, project2, project3.
You can use the in clause
Something like this

Indexing criteria for elasticsearch

I am working with twitter streaming api. and am a little confused about deciding the criteria for indexing the data. Right now I have a single index that contains all the tweets in one doc_type and users in another doc type.
Is it the best way to go about storing them or should i create a new doc type for every category (category can be decided on basis of hashtag and tweet content)
What should be the best approach to storing such data?
Thanks in advance.
At first, the answer to your question is that this very much depends on your use case. What is your application doing? What do you do with the tweets? How many categories do you plan to have?
I'd in general, however, go for a solution where you use the same index and the same doc_type for all tweets. This allows you to build queries and aggregations over all your tweets without thinking about the different types of categories. It also allows you to add new categories easily without having to change your queries.
If you want to do some classification of the tweets you could add a category field to the tweet document stored in elasticsearch. You can then use this category field to implement your specific application logic.
If your category names have spaces or punctuation marks don't forget to define the category field as not_analyzed. Otherwise it will be broken up in parts.

Entity Framework Where Any Column Contains

When writing a where condition on an Entity Framework context object, is there a shorthand way of testing all the columns, sort of like this:
context.tableName.where(t => t.AnyColumn.Contains(...))
Or am I forced to test each column individually?
There is no out-of-the-box way to do that but you can write your own method which will use reflection to get the list of your model's properties and check each of them
I don't know that this is possible you may have to search each field individually, but why not search for a value in a specific column instead of searching the whole table, it reduces the room for error and makes for a quicker query

Querying by Custom Field in TFS

I've added a custom field/column to the 'task' type in TFS and can populate it as I'm adding new work items without a problem, but it doesn't appear as a field I can query or sort against.
The custom field is specific to this project. It's a simple number.
How can I sort by this field, or at least display it in the results set.
Found it.
The custom field name was preceded with 'Custom'. Didn't think to run right through the list; just jumped straight to where I'd expect it to be alphabetically.
I blame the time of day/week.

Resources