LiquidPlanner Classic Forum

Ask a Question
ANSWERED
ANSWERED

How can I post comment as HTML content ?

*Posted on behalf of a customer. Original posting date 2015-03-11* I want to write the following comment into the LP from the rest API post function, in my case comment is creating but formatting is breaking. I want to write exact same formatted way. Please help me how can maintain format of the comment ? original format of comment: E-mail content (first draft, eager to do some changes, improvements etc.): Invitation e-mail, send to someone who was added by manager or HR admin: /e-mail_name/ Invitation to [App_name] /e-mail_text/ Hi [user_first_name]! Please click link below to register in [App_name]: <link>[http_address]</link> [App_name] allows you to check and book your vacation days quick and easily. Best regards, [App_name] Team Example: Invitation to Vacation App Hi Adrian! Please click link below to register in Vacation App: https://vacation.forlagshuset.no/register?adsafskjhfasdf Vacation app alows you to check and book your vacation days quick and easily. Best regards, Vacation App Team E-mail send to the manager when user book vacations: /e-mail_name/ Vacation request - [user_first_name;user_last_name] /e-mail_text/ [user_first_name;user_last_name] booked [vacation_type] in: [start_date]-[end_date]. /if vacation type has limit/ He still has [day_number] [vacation_type] days left. If you accept this request, it will be limited to [day number] days. /if there are comments/ Comments: [user],[date]: [comment] [user],[date]: [comment] [user],[date]: [comment] <link> ACCEPT REQUEST </link> <link> REFUSE REQUEST </link> <link> add comment </link> <link>Go to [app_name]</link> Example: Vacation request - Adrian X Adrian X booked paid vacation: 23.08.2014 - 28.08.2014 He still has 17 paid vacation days left. If you accept this request, it will be limited to 14 days. When i am writing comment in the LP then the format become as following which i don't want. E-mail content (first draft, eager to do some changes, improvements etc.): Invitation e-mail, send to someone who was added by manager or HR admin: /e-mail_name/ Invitation to [App_name] /e-mail_text/ Hi [user_first_name]! Please click link below to register in [App_name]: <link>[http_address] [App_name] allows you to check and book your vacation days quick and easily. Best regards, [App_name] Team Example: Invitation to Vacation App Hi Adrian! Please click link below to register in Vacation App: https://vacation.forlagshuset.no/register?adsafskjhfasdf Vacation app alows you to check and book your vacation days quick and easily. Best regards, Vacation App Team E-mail send to the manager when user book vacations: /e-mail_name/ Vacation request - [user_first_name;user_last_name] /e-mail_text/ [user_first_name;user_last_name] booked [vacation_type] in: [start_date]-[end_date]. /if vacation type has limit/ He still has [day_number] [vacation_type] days left. If you accept this request, it will be limited to [day number] days. /if there are comments/ Comments: [user],[date]: [comment] [user],[date]: [comment] [user],[date]: [comment] <link> ACCEPT REQUEST <link> REFUSE REQUEST <link> add comment <link>Go to [app_name] Example: Vacation request - Adrian X Adrian X booked paid vacation: 23.08.2014 - 28.08.2014 He still has 17 paid vacation days left. If you accept this request, it will be limited to 14 days. Manually i am copy pasting the comment then the comment is writing as same as i want. But from REST api its breaking expectation. I have posted question at stackoverflow also, see the link below. http://stackoverflow.com/questions/28963403/how-to-serialize-a-long-string-and-maintain-the-formatting?noredirect=1#comment46180125_28963403
ANSWERED

API snapshot data

*Posted on behalf of a customer. Original posting date 2015-03-03.* I'm browsing the API documentation trying to figure out if there's a way to get custom field values as of a particular snapshot date. I see that there are snapshot ids, but when I specify include=snapshots in a request, I don't get the custom fields on each individual snapshot. Is there any way to get this information from the API?
ANSWERED
ANSWERED
ANSWERED
ANSWERED
ANSWERED
ANSWERED

Update the description in an existing task from rest api? What URL and what JSON structure?

*Posted on behalf of Ashish Jain. Original posting date 2015-01-26.* Hi All, how can i update the description in existing task from rest api, what url and what the structure of json is require for update the description of a task ?
ANSWERED

How to create an assignment with remaining estimate ?

*Posted on behalf of Thibaud. Original posting date 2015-01-26.* Hi, When I create a new assignment using the /treeitems/###/update_assignment URL, the low and high remaining efforts aren't taken into account. Here's an example: `` URL: /workspaces/#####/treeitems/######/update_assignment`` POST Data: ``"person_id": #####, "low_effort_remaining": "4h", "high_effort_remaining": "8h" `` I tried with both virtual and non virtual members without success. Also, updating an existing assignment (passing assignment_id) works fine. This forces to make 2 calls for new assignments. Am I missing something? Regards, P.S: looking in the forum I found that when creating a task, the estimates for all assignments can be set using the estimate key with low and high attributes, which is really useful but not documented anywhere (that I could find). This actually fixes my issue in the case of new tasks. I recommend updating the API documentation to include this as it is a quick workaround to prevent using multiple requests. I even found that the documentation for the changes of january 10th expressively states that creating a task and setting estimates is not doable anymore, while I just tested that it works: Link: https://developer.liquidplanner.com/discuss/5d66b02666da7000500eaa81 Section: Creating a treeitem and estimating it in one request