Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

What is this error with Deviniti bundled field?

Amy Nguyen June 21, 2018

I was trying out deviniti bundled field on one of my projects. It works beautifully in the backend. However, I get an error in the customer portal. This is the error I got 

{"baseGroupId":{"fields":[{"id":"d816569b-7502-4e50-a7de-f7effabff031","name":"Base","type":"select","required":true,"showLabel":true,"options":[{"id":"e0643340-9a2d-48f5-9a28-84c966e70bfb","name":"Topside"},{"id":"eb3b38ca-ff31-42df-9989-ee80d15951bd","name":"Bayside"},{"id":"0087ee4a-37ba-42e4-a7cb-dd6aabe58a5a","name":"Seaside"},{"id":"1325bc31-f350-40f4-ad52-9fc5197f5e04","name":"Cliffside"},{"id":"5a120e9f-ca4d-4bd2-b776-9dee0c2c20f0","name":"Barricks"}],"value":"e0643340-9a2d-48f5-9a28-84c966e70bfb"},{"id":"d99b730e-ce90-40fa-860f-f83a1c9d17e7","name":"Building #","type":"text","required":true,"showLabel":true,"options":[],"value":"A2"},{"id":"33f611c3-d8ef-4c3d-81fd-491a75c79187","name":"Room #","type":"text","required":true,"showLabel":true,"options":[],"value":"207"}]}}

 

Does anyone know how to fix it? 

 

Thank you!

Amy

3 answers

0 votes
Paul Madison
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 22, 2020

That's not an error, that's how the field is stored in the database.  You might need to update your plugin.

Gerson Santos June 23, 2020

Exactly. Deviniti should review this and fix the way the field is presented on the customer portal. It shows the entire json structure, instead of formatting it properly. I had to do a lot of work to take the fields from the bundled field and display it on a comment properly. Example below, where #{Budget Confirmation} is the bundled field:

 

struct value{
string id;
string originid;
string name;
string type;
string required;
string showLabel;
string options;
string value;
}

struct fields{
value [] fields;
}

struct baseGroupId{
fields [] baseGroupId;
}

string json = #{Budget Confirmation};

baseGroupId cData;
cData = fromJson(json);


string ProjectNumber = cData.baseGroupId[0].fields[0].value;
string ProjectName = cData.baseGroupId[0].fields[1].value;
string ApprovedBudget = cData.baseGroupId[0].fields[2].value;
string GLcode = cData.baseGroupId[0].fields[3].value;
string GLperc = cData.baseGroupId[0].fields[4].value;

Like Paul Madison likes this
0 votes
xz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 19, 2018

Also met this problem, how to resolve?

@Amy Nguyen

Katarzyna
Atlassian Partner
June 7, 2019

@xz  do you have still this problem?

Gerson Santos November 3, 2019

I have the same problem. Anyone can help?

Katarzyna
Atlassian Partner
November 20, 2019

In case of any problems, please contact our support. We'll be happy to help you! :) 

0 votes
Moses Thomas
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 22, 2018

@Amy NguyenI am  sorry if i  don't understand  properly do  you  mean  Deviniti  bundled fields ?

 

Best!

Amy Nguyen June 25, 2018

Sorry it was a typo! Yes... Deviniti bundled field. Thanks!

Moses Thomas
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 25, 2018

@Amy Nguyen

Please see documentation in the below link on the usage of Deviniti bundled fields, if this doesn't help, best  you  contact vendor support Documentation & support

 

Best!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events