Hey, I am looking for guidance on rendering the Labels array returned in a Jira payload on ConfiForms. I have tried referencing the array via a Formula field type and the expression as: "[myfield.fields.labels.transform(value).asList]" . Also referencing without the virtual asList as: "[myfield.fields.labels.value]".
What I get is: ["["label1","label2","label3","label4"]"] could not be calculated, Unknown operator or function: label4
All I am trying to is display the list of values on a Form View macro. I am successfully displaying other values (that are not arrays) on the form. I also know the data is coming in as the correct values are represented in the text of the error (as above).
Hi
Welcome to this community @Jim Rogers
What are you trying to calculate with your labels? I mean, why do you use a formula field?
Why not a simple text field? Or a dynamic multi-label field?
Alex
Alex,
I am sure I am over complicating it. I was using the formula to be able to get the value into the field.
My Jira JSON response is:
"labels": [
"Label1",
"Label2",
"Label3",
"Label4"
],
All I want to do is display these values on the Form View
I have a number of other fields returned from JIRA I need to display on the form. One is working with the formula (Not an array field). So the simple text field is certainly a more appropriate type. I just don't know how to get the value in it.
Thank you!!!! Jim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can access Jira fields directly in your views, via Jira field
I dont quite understand what is this "myfield.fields.labels"... What is myfield? is it a Jira field you have in ConfiForms?
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Alex,
Changed the screen prints to help. JiraID is my field in the table that contains the field of type Jira Issue. All of that is working perfectly.
I have actually used the information on the above page and they work fine for the table view macro. I am trying to show these on a Form View and with the values in the label array.
What I get is the Jira object description as if I wasn't referencing a sub field in the JSON structure.
Finally, if I reference JiraID.fields.labels on the table view, it renders as ["Label1","Label2","Label3","Label4"]. So not great, but it works.
Thank you! Jim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But what do you want to get rendered? The values can be transformed, I am pretty confident
What format do you want to see?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Little demo of what you can do with multi label field, for example...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Alex,
I got it to work with your guidance and video!!! Now I need to read more on the new portions you taught me (and eventually others will benefit).
I really appreciate you helping here.
Jim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are welcome.
PS, you can accept the answer in this case ;-)
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.