-SOLVED- {PUT} Update Task removes indenting - <ol> and <ul> classes get removed...

When you GET a task description, the HTML Wrike provides is perfect - It includes everything you'd expect, including classes on tags (main ones being <ol> and <ul>).

However, when you PUT a task description back to Wrike through the API, it strips any classes on my <ul> or <ol>. 

Example: If a task has a multi-tiered order list, it denotes indentation with a class - So if you have 1 sub list for an ordered list, it adds a class of "ql-indent-1".  If you indent again, it will be "ql-indent-2". 

The above example comes over just fine in the GET request... But when it is PUT, it appears Wrike scrubs the class off of it... So my ordered lists with sub lists get brought down to 1 level with no more indents. 

Anyone else notice this as an issue? 

0
4 comentarios
Spot On Innovative Approach Stellar Advice
Avatar

Images attached - It goes from this (with indenting):

To This: (no indenting)

NOTE: All span styles work fine in the PUT request - So the red backgrounds with white text work just fine... It's just the classes that don't appear to come over. 

0
Acciones de comentarios Permalink
Spot On Innovative Approach Stellar Advice
Avatar

Hi Wesley Fly, welcome to the Community! 

For this we'll need advice from our Advanced Support team - I'm raising a ticket for you now. You'll receive a notification soon. 

Lisa Community Team at Wrike Become a Wrike expert with Wrike Discover

0
Acciones de comentarios Permalink
Spot On Innovative Approach Stellar Advice
Avatar

This was solved.  The issue was on my end.  I was incorrect in my statement above that Wrike gives you the description with classes on it.  They actually give you a more raw, <ul><li><ul><li></li></ul></ul> structure (that example is a 2 tier unordered list)...

What was happening was the text editor I was using converted that structure exactly the way Wrike does, by slapping a class of "ql-indent-#" on the <li> tags to mark indentation.  My editor would then send Wrike the new class structure instead of the more raw nested <ul> structure above. What I did to fix was write a quick converter that puts it to the way Wrike expects it to be, then PUT it back.  Worked like a charm.  :) 

Quick note that Wrike Support was rapid to respond and ready to help! Thank you! :) 

0
Acciones de comentarios Permalink
Spot On Innovative Approach Stellar Advice
Avatar

Happy to hear that, Wesley Fly🙂

Please let me know if you have any other questions (we have multiple forums on this Community 😊)

Lisa Community Team at Wrike Become a Wrike expert with Wrike Discover

0
Acciones de comentarios Permalink

Folllowing List for Post: -SOLVED- {PUT} Update Task removes indenting - <ol> and <ul> classes get removed...
[this list is visible for admins and agents only]

Didn’t find what you were looking for? Write new post