How to get all stories and sub tasks from a specific user along with how much time spent on each item in JIRA - jql

I am trying to get all stories and sub-tasks for a specific user along with how much time spent on each item from starting of this year.
I am using JIRA version v8.5.9, where I have tried running the following query but it is not giving me the expected result, any help is appreciated.
(issuetype = "Sub task") AND time spent > 0 and assignee = test123

With your shown samples, attempts please try following JQL query.
(issuetype = "Sub task" OR issuetype = Story )AND timespent > 0 AND assignee = test123 AND createdDate >= startOfYear()
Explanation:
Look for Sub task OR story first.
Then make sure its timespent(looks like OP has a typo in OP's efforts) is more than 0 here.
Then checking assignee should be test123 user.
Then putting AND condition to make sure all items are coming from starting of this current year.

Related

How to get specific assignee of a story, subtask with a specific summary in JIRA?

I am using JIRA version v8.5.9, where I am running the following query in its search option.
issuetype = "Sub task" AND assigned == 'xyz' and summary = '16.4'
Where xyz is a user. Basically what I am trying to achieve is: I am looking for all stories, sub-tasks whose assignee is xyz user along with its summary should contain 16.4 in it. When I am running this query it's not giving me any results. Any help is greatly appreciated.
With your shown attempts, could you please try following query.
(issuetype = "Story" OR issuetype = "Sub task") AND assignee = 'xyz' AND summary ~ "16.4"
Explanation:
First thing first you need to use OR condition for having stories and sub tasks both to be catch here.
Then you need to use ~ operator to search for string, since you mentioned you could have other than 16.4 string then we can't use = here.
Try using the contains ~ operator:
issuetype = "Sub task" AND assigned == 'xyz' and summary ~ '*16.4*'

Scribe Jobs: how to get the current date and compare it?

Honesty I'm very new in terms of Scribe Jobs, but I have been trying to develop a Job that get the current date and compare it against one field from the source (CRM input Date).
This is the code in the formula editor of the Pre-Operation Step Control:
IF(S146 =TODAY( ), GOTOSTEP ( ),FAILROW( ))
I'm trying to allow the migration only for records inserted today, the rest will just generate error.
Can somebody help me?
Try this:
if( DATEDIFF ("d", GETCURRENTUTCTIME, S146) < 1 )
Here's a great place to look for more information:
http://help.scribesoft.com/scribeonline/en/sol/formulas/datefunctions.htm

Rally Query in Custom App not returning expected results

I am testing a rally query within the settings of a custom app and am unable to get the correct results returned.
I want to return defects with an open task that has specific text in the name only while any other tasks are complete and do not have the same specific text in the name.
The query I am using is:
(((((Tasks.Name !contains "someText") AND (Tasks.State = "Completed")) AND (Tasks.Name contains "someText")) AND (Tasks.State != "Completed"))
I have 1 test defect with 2 tasks for testing:
task 1 does not have the specific text and is complete and the other has the specified text and is not complete.
No information is returned.
If I split the query into separate parts and update the tasks to match
(((Tasks.Name !contains "someText") AND (Tasks.State = "Completed"))
The correct information is returned
as does
(((Tasks.Name contains "someText")) AND (Tasks.State != "Completed"))
How can I put both together?
I have searched the documentation for "nested" queries but I can't find anything applicable, perhaps this can't be done? Can anyone help with the query syntax or help me understand where I am going wrong?
Many thanks in advance

Grouping Elements on Conditions in Penthao Report Designer

I want to make a Report in Penthao Report Designer
My SQL query tells me the SUM of some variables and another variable is already the same SUM.
So for Example
DATE Name Expected SUM
Today A 20 20
Today B 10 5
Inside the Report Designer i select a Text field which is OK if Expected-SUM=0 else Error.
Inside my Report i know want to display if for "Today" all those Textfields are OK (than one row should display OK) or if at least one of them is Error than only Display one Row with Error for a given Date
I'm thankfull for every suggestion.
As here are no suggestions so far, maybe this is one solution: I would do this with an JavaScript-Step, but as a tranformation with a field and a filter-step:
Javascript:
var testing = "";
if(expected - sum == 0){
testing = "ok";
}
else {
testing = date;
}
And after that a filter-step, which sends rows to an "error"-output-report (with given date): filter is "testing NOT ok".
Sorry if thats not the solution for your problem, I have no experiences with Reports ... But maybe it's a hint and you asked for "every suggestion" :)
Hope it works!

Rally web service API: Retrieve Test Cases base on Iteration or WorkProduct attributes

I try to retrieve test cases from rally using XML URL such as
https://rally1.rallydev.com/slm/webservice/1.37/testcase?query = ...
I want to retrieve only test cases of WorkProducts those are accepted from day x to day y so I build the query like this:
https://rally1.rallydev.com/slm/webservice/1.37/testcase?query=((WorkProduct.AcceptedDate >= "yyyy-mm-dd") AND (WorkProduct.AcceptedDate <= "yyyy-mm-dd"))
The result is: Could not traverse to "AcceptedDate"
The funny thing is I can do something like:
https://rally1.rallydev.com/slm/webservice/1.37/testcase?query=(WorkProduct.LastUpdateDate <= "2012-06-26")
which is the same concept.
Is there anyone can say why LastUpdate information is query-able and AcceptedDate is not?
Thanks,
Minh Tue
The reason this doesn't work is because the WorkProduct field on TestCase is an Artifact. Artifact does have a LastUpdateDate field but does not have an AcceptedDate field. You should still be able to get the data you want but it will take a few extra queries.
You'll have to query for defects and stories whose AcceptedDate is in the desired range and include TestCases in the fetch.