I have created tasks in microsoft planner through micrsoft graph api. I am not able to retrieve the priority of the tasks. Which field should be looked into ?
The priority property on task is currently only on the beta endpoint. We're working on updating V1.0 endpoint with the new properties from beta. You can use it from there in the meantime, this one is going to be moved to v1.0 as is.
You can get it by calling beta endpoint:
https://graph.microsoft.com/beta/me/planner/tasks
Priority of tasks is valid range of values is between 0 and 10 (inclusive), with increasing value being lower priority (0 has the highest priority and 10 has the lowest priority). Currently, Planner interprets values 0 and 1 as "urgent", 2 and 3 and 4 as "important", 5, 6, and 7 as "medium", and 8, 9, and 10 as "low". Currently, Planner sets the value 1 for "urgent", 3 for "important", 5 for "medium", and 9 for "low".
FYI This is now available in the v1.0 version. I am using the 4.29 version of the Graph SDK and it is in there.
Related
According to Apple Doc, the 'wrappingComponents' parameter serve this purpose:
If true, the component should be incremented and wrap around to
zero/one on overflow, and should not cause higher components to be
incremented. The default value is false.
What I'm having trouble understanding is the 'overflow' part. What is this overflow and when does this overflow happen? Apple Doc currently does not explain this part in its documentation.
Thanks for your answer in advance.
"Overflow" means that the result of the adding of date components goes over the allowed range of that component. For example, adding 5 days to June 30 is an "overflow" because June 35 does not exist. Other examples include adding 7 hours to 18:00, 4 months to December, etc. This also applies to subtracting too.
What happens by default (wrapping components = false) is that the larger component gets incremented: if you add 5 days to June 30, you get July 5:
However, if you set it to true, it wraps around, meaning that the larger component doesn't change - you get June 5.
Today is June 8 for me. Adding 29 days with wrapping components gives June 7:
let newDate = Calendar.current.date(byAdding: DateComponents(day: 29), to: Date(), wrappingComponents: true)
print(newDate)
According to the influxdb official doc https://docs.influxdata.com/influxdb/v1.8/concepts/key_concepts , tags are indexed.
However, I do not need to filter data with tags when querying. Using the given example in the official doc
time location scientist butterflies honeybees
2015-08-18T00:00:00Z 1 langstroth 12 23
2015-08-18T00:00:00Z 1 perpetua 1 30
2015-08-18T00:06:00Z 1 langstroth 11 28
2015-08-18T00:06:00Z 1 perpetua 3 28
2015-08-18T05:54:00Z 2 langstroth 2 11
2015-08-18T06:00:00Z 2 langstroth 1 10
2015-08-18T06:06:00Z 2 perpetua 8 23
2015-08-18T06:12:00Z 2 perpetua 7 22
while "location" and "scientist" are tags.
If I change "location" and "scientist" to fields, will influxdb consume more space to storage them in comparison to when they are tags?
Influxdb uses line format which is
measurment,tag1=value1,tag2=value2 field1=value1,field2=value2 timestamp
So if you convert the tags into fields the number of points will decrease. This will not only reduce the storage space but also the RAM consumption. So it is always better to store the data as fields if you really don't want the usage of tags (you will not be able to include them in the group by clause)
After the measurement for about one month, I found “tag” does consume less storage space than “field” in influxdb.
I have 90 nodes to measure every 2ms and there are 3 tags. The first tag is the name of the node while the second tag is the name of another node. The third tag is a constant. Therefore, there are 8010(=89*90) combinations of tags.
Using the three tags as "tag" consumes about 500GB storage in one month while using them as "field" consumes about 1.2TB.
But I do not know whether my case fits all kinds of situations.
I have a list of prisoners and when their prison term started (PrisonStart) and when it ended (PrisonEnd). If they're still in prison, PrisonEnd is blank.
I would like to flag prisoners who were in prison at least one full calendar month during a 6-month period (1/1/16 to 5/30/16).
compute PeriodBeg = date.mdy(01,01,16).
compute PeriodEnd = date.mdy(05,30,16).
formats PeriodBeg PeriodEnd (adate10).
execute.
Any suggestions for how best to go about this? Seems I might need to compare prisoners' start and end dates separately for each month during the 6-month period (like below), and then select any prisoner with at least one full month, but I'm wondering if there's a more efficient way.
if ((PrisonStart le [January 1, 2016]) and (PrisonEnd ge ([January 31, 2016]) | missing(PrisonEnd))) InPrisonJan = 1.
if ((PrisonStart le [February 1, 2016]) and (PrisonEnd ge ([February 28, 2016]) | missing(PrisonEnd))) InPrisonFeb = 1.
etc.
execute.
Some sample data below. The first two prisoners should be flagged as having been in prison for at least one full calendar month during the 6-month period (OneMonth = 1). The last three prisoners were not in prison for at lease one full calendar month during the 6-month period (OneMonth = 0).
data list list /PrisonerID (F8.0) PrisonStart (adate10) PrisonEnd (adate10) PeriodBeg (adate10) PeriodEnd (adate10).
begin data
1 10.3.14 7.12.16 1.1.16 5.30.16
2 2.9.16 4.1.16 1.1.16 5.30.16
3 5.2.16 10.11.16 1.1.16 5.30.16
4 12.1.13 2.8.14 1.1.16 5.30.16
5 1.7.16 1.20.16 1.1.16 5.30.16
6 1.1.17 3.2.17 1.1.16 5.30.16
end data.
The following syntax avoids mentioning the last day of each month separately, so it could be used to automate across any number of months. The trick to check if the date is the last day of the month, is by checking day "0" of NEXT month:
do repeat inpr=inPrison1 to inPrison5/ mon=1 to 5.
compute inpr=( PrisonStart<=date.dmy(1,mon,2016) and
(PrisonEnd>=date.dmy(0,mon+1,2016) or missing (PrisonEnd)) ).
end repeat.
For example, let's say I need to find all issues that were resolved within 1 week's time. I need something like:
resolved - created < '1w'
Another example:
Let's say I have 3 issues:
1) created 2 days ago, resolved 1 day ago.
2) created 5 days ago, resolved 4 days ago.
3) created 3 days ago, resolved 1 day ago.
I need a query that will return 1 and 2, but not 3. I need to query for issues that are created at some day X, and resolved <= day X+1.
You have all sorts of control with queries. For example, here is how I check for my tickets that are on hold that I have not updated in the last 5 days.
currentUser() AND status = "On Hold" AND updated <= -5d
Created in the last 5 days would be:
created >= -5d
Resolved in the last 7 days would be:
resolved >= -7d
OR
resolved >= -1w
I don't know if it matters yet but I resolved it with dateCompare():
issueFunction in dateCompare("", "created > resolved -5d"))
So since this does not seemed to be built into JIRA by default my only other suggestion is to see if you can extend JQL to add it.
How's your Java? See how to add JQL to JIRA
So, you want to see all issues where (Resolved date-Create Date) < 1 day
Or 2 days, or 3 days. I think I'd create a (hidden) calculated custom field that shows Resolved-Created and use an Exact Number Searcher on it. Or maybe write a custom JQL function to do the same thing. No way to do it in standard JIRA.
This finds all issues, that were resolved the same day they were created, within the specified period:
project = MyProject AND created >= 2021-11-29 AND created < 2021-12-05 AND issueFunction in expression("", "created.clearTime()==resolutionDate.clearTime()") ORDER BY created DESC, updated DESC
Where this part
created >= 2021-11-29 AND created < 2021-12-05
is any period you're looking for issues within and
issueFunction in expression("", "created.clearTime()==resolutionDate.clearTime()")
is the condition that converts the Date-Time format of "created" and "resolutionDate" to only Date-format and compares the received dates with each other.
The topic's task:
If you add +1 to created.clearTime() - created.clearTime()+1, you will find all issues that were resolved the day they were created and issues that were resolved the next day (+1 day from the creation date).
Note, that you need to use a plugin (I'm using ScriptRunner).
i am using oauth_util.rb ( https://gist.github.com/383159 ) and my YQL query is
"select * from search.termextract where context=\"#{text}\""
This works where text is a short string, but fails for the longer ones with the following error:
RuntimeError (Please provide valid credentials. OAuth oauth_problem="signature_invalid", realm="yahooapis.com" for text [ Virdhawal Khade Wins Historic Medal | Sports News Bangalore November 16, 2010 -19-year-old Indian swimmer and GoSports Foundation awardee, Virdhawal Khade, has made history at the Guangzhou Games by clinching the Bronze Medal in the Men's 50m Butterfly event. ... Starting the Finals in fifth place, Veer's performance was nothing short of astonishing, as he finished with his season best time of 24.31 seconds. He finished 0.65 seconds shy of first placed 27-year-old Zhou Jiawei, the top ranked Chinese Swimmer who is also ... ]):
Thanx in advance.
got it... needed to use URI.encode to encode the URI instead of CGI::escape