I'm using https://www.npmjs.com/package/jira-client wrapper class to create a Jira automation utility and one of the requirements is to read data from excel sheet and upload the relevant data as a table to the description section of the created issue
This wrapper class seems to allow only string type as acceptable value. I was able to parse a simple html table as a string and create a table but when it comes to big tables how can I handle those ?
Can I use the custom fields option to do this ?
From the API documentation it seems that the description field can be modified to send tables, can someone help me figure out how ?
Thanks
Hi @Rahim T_S ,
tables in description is part of the text. You could try to add the following :
||Heading||
|Your cell value|
Please let me know if it works,
Fabio
Hi @Fabio Racobaldo _Herzum_ that seems to work. Thank you
I added as
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| column 1 | column 2 |
in order to create a new row you just need to add carriage return in your text.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
does it actually renders as the table ? it comes as text only for me , how to add carriage return in text on mac ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried
description: `||Test1|| |Test2|`
But i just get exactly text in my description, there's no actual table in my ticket, can you help, appreciate
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Fabio Racobaldo _Herzum_ I don't actually get what you mean but I'm using jira.js and try to create a ticket like this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Field configuration and renderers are at configuration level and not at request level. https://support.atlassian.com/jira-cloud-administration/docs/configure-renderers/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Fabio Racobaldo _Herzum_ sorry for late response, so I can't add something like
"||Name||||Title|||Tyler||Software Engineer|"
in my description by request to this api POST /rest/api/3/issue right ? in order to render a table.
If so, where exactly do I need to put/insert them so that I can render a table using your way? I've read the document above but not fully understand it.
Appreciate your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Tyler Do ,
probably you need to encode your description before using REST API. (https://www.urlencoder.org/)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Fabio Racobaldo _Herzum_, sorry, just came back after the holiday, but it still doesn't work, appreciate any help from you, thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.