LiquidPlanner Classic Forum
trying to figure out if a user has a session started.
*Posted on behalf of a customer. Original posting date 2015-01-08.*
**Customer asked:**
Trying to have my own login page. I don't know how to figure out if a user has a session started. When session is not started browser listens to HTTP 401 and puts its Auth Dialog up which work, but I want to use my own.
How to see when user is already logged in and display my own if not?
**LP Support responded:**
I talked to our dev team and unfortunately, there's no great foolproof way to do this. They said you can try making a request to: "https://app.liquidplanner.com" and look at the response. If it's a 302 (a redirect), then that means the user is already logged in. If not, then the user is not logged in. If it's redirecting to /login then the user is not logged in.
If you're trying to piggy-back on the user session to make API calls - that isn't possible.
**Follow-up question from customer:**
I am using Javascript and can't figure out how to tell if I get a 302 response.
Posted by LiquidPlanner Support over 4 years ago
Retrieve estimates for a task/project/person over a specific date range
*Posted on behalf of Matt Bromwich. Original posting date 2015-01-08.*
I would like to retrieve the "Hrs remaining" for a project for only a specific date range (e.g. the estimated effort required for a project during week 3).
For example "project X" has tasks spanning several weeks (say week 2, week 3 and week 4). I would like to retrieve the estimated work for each of the weeks. This data can be accessed (manually) in Analytics using a project rollup reported filtered by custom dates. Can this same data be retrieved using the API?
If a method exists it would also be useful for looking at effort/week for individual tasks and for individual resources as well.
Posted by LiquidPlanner Support over 4 years ago
Cannot add tags to a task
*Posted on behalf of Jeannette Rigor. Original posting date 2014-12-19.*
I am using the python API example , however when I create a task I am unable to create tags:
Code sample:
```
task_options = {
'name': 'Bug ' ,
'description': 'description'
'custom_field_values': {
'Task Status':'Backlog'
},
'tags':{
'text':'bug'
},
'parent_id': int(inboxID)
}
```
```
new_task = lpSession.create_task(task_options)
print "Added task %(name)s with id %(id)s" % new_task
```
All fields get created except the tags, please help.
Thanks.
Posted by LiquidPlanner Support over 4 years ago
Upload document with c#
*Posted on behalf of Krisztian Buscsei. Original posting date 2014-12-13.*
Hi,
I try to upload a file with csharp, but it is not working :( someone has any ideal about why?
I made a simple code for test, it is in the attached file.
Thank you
Krisz
Posted by LiquidPlanner Support over 4 years ago
non plain text comment with api
*Posted on behalf of Krisztian Buscsei. Original posting date 2014-12-12.*
Hi
Is it possible to upload non plan text comment with api? and how?
Thank you
Krisz
Posted by LiquidPlanner Support over 4 years ago
What is the scope of request throttling?
*Posted on behalf of steve seeley. Original posting date 2014-12-11.*
Is request throttling scoped by login ID (each login account is allowed 30 request per 15 seconds), workspace (the entire workspace is restricted to 30 request per 15 seconds) or some other criteria?
Thanks, Steve
Posted by LiquidPlanner Support over 4 years ago
Is there a way that I can make sure that webhooks stay on?
*Posted on behalf of Chris. Original posting date 2014-12-11.*
I have a couple of Zapier zaps tied to Liquid Planner that send information to Google Spreadsheets. Is there a way that I can make sure that web hooks stay on? Every time the Google Spreadsheet fails to grant access temporarily (usually a https - read timed out error), the web hooks attempt to push 10 times and then is automatically disabled.
Regards,
Chris
Posted by LiquidPlanner Support over 4 years ago
Resource report person roll up through API
*Posted on behalf of a customer. Original posting date 2014-12-10.*
I’m currently trying to retrieve the raw data for a resource report (person roll-up) through the api. When I query timesheets I do not get a connection to a task though so I can’t get the data I need. What we are trying to do is feed that data to geckoboard to get a dashboard of graphs for specific reports we are running. Any help?
Posted by LiquidPlanner Support over 4 years ago
Problem with request throttling when using templates to create new projects via the api
*Posted on behalf of steve seeley. Original posting date 2014-12-08.*
I’m having a problem with request throttling when using templates to create new projects via the api. We have a ticketing system (TS) that needs to feed ticket projects into LiquidPlanner (LP). We store the project definition as a template in LP. Because there is no copy/duplicate project in LP we have to read the project template in parts, then create the new project part by part. This is causing us to exceed the 30 request in 15 seconds limitation. Below is an example of a 21 request process. However this successful TS ticket to LP project only has 2 tasks with 3 checklist items on the first task and 2 checklist items on the second task. How can I reduce the number of request for this process. Thanks, Steve
I’ve replaced our workspace ID with 123456 for our protection.
```---> find correct project template based on tags```
```https://app.liquidplanner.com/api/workspaces/123456/packages?filter[]=name%20=%20Venice%20Templates ---> get Venice Template Package```
```https://app.liquidplanner.com/api/workspaces/123456/treeitems/18805939?depth=-1&leaves=true ---> get templates (HSPICE & Collateral)```
```https://app.liquidplanner.com/api/workspaces/123456/projects/18805941/tags ---> get HSPICE tags (api & vcat_hspice)```
```https://app.liquidplanner.com/api/workspaces/123456/projects/18963553/tags ---> get Collateral tags (api & vcat_collateral)```
```https://app.liquidplanner.com/api/workspaces/123456 ---> get INBOX ID to place new project into (11782703)```
```---> create new project```
```https://app.liquidplanner.com/api/workspaces/123456/projects {"project":{"parent_id":11782703,"name":"Create Kitadake Seabird DB","owner_id":490753,"description":"This is a collateral task description"}}```
```---> add tags```
```https://app.liquidplanner.com/api/workspaces/123456/projects/19032157/tags {"tag":{"text":"api"}}```
```https://app.liquidplanner.com/api/workspaces/123456/projects/19032157/tags {"tag":{"text":"collateral"}}```
```---> add 1st task```
```https://app.liquidplanner.com/api/workspaces/123456/tasks {"task":{"name":"First Task","parent_id":19032157,"description":""}}```
```https://app.liquidplanner.com/api/workspaces/123456/tasks/19032169/update_assignment {"person_id":490753}```
```https://app.liquidplanner.com/api/workspaces/123456/tasks/19032169/track_time {"low":9,"high":33}```
```https://app.liquidplanner.com/api/workspaces/123456/tasks/18963554/checklist_items ---> get template checklist items for 1st task```
```---> add checklist items to 1st task on new project```
```https://app.liquidplanner.com/api/workspaces/123456/tasks/19032169/checklist_items {"checklist_item":{"name":"Contact Customer","sort_order":0}}```
```https://app.liquidplanner.com/api/workspaces/123456/tasks/19032169/checklist_items {"checklist_item":{"name":"Call Customer Again","sort_order":1}}```
```https://app.liquidplanner.com/api/workspaces/123456/tasks/19032169/checklist_items {"checklist_item":{"name":"Call Customer","sort_order":1}}```
```---> add 2nd task```
```https://app.liquidplanner.com/api/workspaces/123456/tasks {"task":{"name":"Second Task","parent_id":19032157,"description":""}}```
```https://app.liquidplanner.com/api/workspaces/123456/tasks/19032189/update_assignment {"person_id":490753}```
```https://app.liquidplanner.com/api/workspaces/123456/tasks/19032189/track_time {"low":0,"high":0}```
```https://app.liquidplanner.com/api/workspaces/123456/tasks/18974501/checklist_items ---> get template checklist items for 2nd task```
```---> add checklist items to 2nd task on new project```
```https://app.liquidplanner.com/api/workspaces/123456/tasks/19032189/checklist_items {"checklist_item":{"name":"Contact Customer","sort_order":0}}```
```https://app.liquidplanner.com/api/workspaces/123456/tasks/19032189/checklist_items {"checklist_item":{"name":"Call Customer","sort_order":1}}```
Posted by LiquidPlanner Support over 4 years ago
JIRA Integration help needed
*Posting on behalf of a customer. Original posting date 2014-11-21.*
We have spent about 4 weeks working on integrating JIRA with LiquidPlanner and still are probably still a few weeks away from getting basic functionality to work. I feel like this has been done before by someone/somewhere/somehow. If anyone has any code they are willing to share it would be appreciated. We are using webhooks in both platforms with the API and are trying to do a two way sync. We have stumbled and punted on issues like how comment edits are handled and workflow/card sync.
So if there is full blown file that has been executed in the past (with sensitive data removed) it would be greatly appreciated.
PS. I understand that every implementation is different but having an example of how someone has built it out would be super helpful.
Posted by LiquidPlanner Support over 4 years ago