I need to find all defects and subtask under given story. How can I find the same ?
Do i need to install any plugin or is it possible to JQL itself ?
You can achieve this requirement via JQL itself and there is no need of any additional plugins with JIRA.
First you need to have a filter that brings down to that one single UserStory which you want to query for bugs and subtasks. That should be implemented in this manner (something similar to this). Save that filter by a name so that you can refer it again - say 'MyFilter':
project = ABC AND issuetype = UserStory AND issuekey = ABC-12345
The next step is use this Filter in the following JQL to fetch what you require for:
issuetype in (Bug, SubTask) and issueFunction in linkedIssuesOf('filter = MyFilter')
You can provide the optional second parameter in the linkedIssuesOf JQL function (which is nothing but the link type) and if you choose not to, then it provides with all the tickets under the UserStory matching your issuetype.
Hope this helps!
Related
I am attempting to build a Microsoft Teams bot using the Bot Framework Composer. What I would like to do is create an integration with ServiceNow. The goal would be that if anyone posts a record number (ex. REQ0123456, INC0123456, KB0123456) into the group or direct chat (with the bot), the bot would look up that record and provide a card or a short summary of the record to the chat.
To avoid creating a completely separate intent for each record type, I was hoping to use RegEx to gather the match into 2 capture groups; one for the tbl_code and one for the number.
Here is the entry for the user input:
> add some example phrases to trigger this intent:
- look up {conversation.sn_record.tbl_code=REQ}{conversation.sn_record.number=0123456}
- lookup {conversation.sn_record.tbl_code=REQ}{conversation.sn_record.number=0123456}
- {conversation.sn_record.tbl_code=REQ}{conversation.sn_record.number=0123456}
- lu {conversation.sn_record.tbl_code=REQ}{conversation.sn_record.number=0123456}
> entity definitions:
# regex sn_record tbl_code, number = /([a-z]{2,4})([0-9]{7})/mi
The Issue I'm Having
I don't know how to get the values back from the individual capture groups. I would like to have them separate so that I can determine which table needs to be queried. I could probably just use the entire match and the search API in ServiceNow for the whole record string, but I would still like to know how to use capture group values.
I'm currently using turn.recognized.text, but I don't think this is the best method for what I'm looking to do. This returns the entire regex match.
I'm very new to this framework, so please be gentle. :) Let me know if there is more information I can provide.
Thanks all.
Best Regards,
Josh
I was able to figure this one out using the examples in the ToDosSample bot.
The answer was to use named capture groups and then add them to a dialog property to use in the corresponding dialog.
For reference here are the changes I had to make:
New Regex
(?<sn_record>(?<tbl_code>[a-z]{2,4})(?<numbers>[0-9]{7}))
New Dialog Properties
dialog.sn_record = #sn_record
dialog.sn_tbl_code = #tbl_code
dialog.sn_numbers = #numbers
New response
- Okay, looking up ${dialog.sn_tbl_code}${dialog.sn_numbers}
I have added a custom issue type called 'Customer problem' in my JIRA installation. When I do a JQL query on a list like this:
project = MYPROJECT ORDER BY issuetype ASC
The resulting list shows the 'bug' issue type on top, after that my Customer problems and then the rest.
How can I prioritize my own custom issue type over the standard bug issue type?
I think the following happens:
ORDER BY x ASC does order alphabetical. The issuetype "bug" is probably alphabetically in front of your custom issuetype.
A solution with this searchterm could be renamming your custom type to a name with "a_oldname". That brings the name to the front... Not exactly elegant but a workaround.
You could also exclude bugs from the search results:
project = MYPROJECT AND issuetype NOT " bug" ORDER BY issuetype ASC
Alternatively we could try creating a search term that will order things differently... But on a mobile device I currently can't test my thoughts on that...
It seems like this solved my own question:
Go to Administration -> Issues -> Issue Type Schemes and click edit. There you'll get a screen which enables you to do exactly what is intended here:
The proper JQL-query to get the required result is now the one in the question.
Is it possible to search LinkedIn Profiles by name within your network using Spring Social?
I've seen the search option defined on profileOperations but there's nothing like that available on connectionOperations. I was thinking something along the line of retrieving all the connection ids and using that as a filter on a profile search.
But I couldn't find any documentation on how to use the search function and since the connectionOperations only retrieves full profiles that's a pretty expensive operation, in any case.
Any suggestions?
Yes. It is possible.
You can use the search() method in org.springframework.social.linkedin.api.ProfileOperations
LinkedInProfiles search(SearchParameters parameters)
Set the firstName and/or lastName attributes in SearchParameters object.
Sample code:
SearchParameters searchParameters = new SearchParameters();
searchParameters.setFirstName("first_name");
searchParameters.setLastName("last_name");
LinkedInProfiles profiles = linkedinApi.profileOperations().search(searchParameters);
Hope this helps. Let me know if you have any further questions.
Praveen
I have a content type called Author which is referred in another two content types called Novel and Book via Node Reference Module.So we can add author entity to both Book and Novel content types.
Both Novel and Book contain another field called Release Date.
Now I want to show a block which will display the name of book and name of novel in chronological order based upon the release date when user come to that corresponding Author Page.
Ex. Suppose A is an author who is author of BookA(Release Yr-2006), NovelB(Release Yr-2004),BookC(Release Year-2009). When user come to Author A page then he will be shown a block which will show the Books/Albums in chronological order like this:-
NovelB--BookA--BookC
Please suggest as how to achieve in Drupal 7.
You want to display the following field title (I assume the book name is the node title)
For the sorting you can use the sort option in views, it is pretty self-explaining. Choose the name of your release date field.
For the connection between author and books you will have to use a contextual filter (advanced).
Add the author-reference-field from your book/novel (the field you use to refer to the author). Then choose to use a default value (2nd option) and choose content id from url. Now your block will find all nodes that refer to the page with the current page-id. Since we chose to display the title fields, you should see a list.
Note that live preview does not work here, so you will have to go to the actual page to see the result.
UPDATE:
This works when you have re-used the same field for both content types. If you have uses more then one field you will have to use an OR operator to make the contextual filter work. Thanks to d34dman the following page was given to do just that.
Although for new implementations I would recommend using the same field (eg. reference_to_author) for all references from all content types.
Yah..I am able to solve this problem by adding custom code. I have used hook_views_query_alter method and then added join relationship and where clause as per requirement. Please refer to following article for more clarity..
http://www.midwesternmac.com/blogs/jeff-geerling/filtersearch-multiple-fields
Thanks for posting the reply and keeping my hope alive.
I have a JIRA filter which returns all the fixes in a future release:
project = MyProject AND fixVersion = "1.1.1" and issuetype in standardIssueTypes() and status != Closed
All of these issues have Sub-Tasks which I want to have in a new filter result. They do not have the fixVersion set.
I have tried the parent filter but this only accepts Key or ID.
Is there any way I can write a filter to access these without manually using something like parent in (MyProject-1,MyProject-2,MyProject-3,MyProject-4,etc)?
You can install the Craftforge JQL functions
https://plugins.atlassian.com/plugin/details/31601
You then create a filter
project = MyProject AND fixVersion = "1.1.1" and issuetype in standardIssueTypes() and status != Closed
Call this filter for example 'parentIssues'
Using the JQL
issue in subtaskIssuesFromFilter("parentIssues")
will retrieve all relevant subtask issues.
I have a solution that requires no plugins whatsoever, but some manual work that is much better than listing the tasks in the query itself:
Using the linkedIssues function, you can write a query like so
parent in linkedIssues("PROJ-1061")
Now, link all the issues you want in this query to the PROJ-1061 and you're golden. You can do this in a bulk job, you can also add it as a trigger in a workflow potentially.
Use Script Runner plugin and a query like:
issueFunction in subtasksOf("project = MyProject AND fixVersion = 27_04_2013 and status != Closed"))
JQL Tricks adds tons of additional JQL functions: https://marketplace.atlassian.com/plugins/com.j-tricks.jql-plugin
Here an example for the above using their syntax:
issue in parent("project = MyProject AND fixVersion = 27_04_2013 and status != Closed")
There is no need for any Plugin.
Switch to "Advanced" filter option and enter
status in ("Open") AND parent in (PHX-xxx,ENG-xxx)
It will give you all the open tickets present as a subtask in parent JIRAs. Build more complex and enjoy using JIRA. Advanced filter options will also give you all possible values to build Queries.