Forums

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

Updating objects from a json with an attribute linked to a Jira project is not getting updated

Alex Gay
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.
July 17, 2023

Hi

 

When importing data from a json to update object in Insight / assets is working as expected for most of the objects.

But when the object to be updated contains an attribute linked to a Jira project, the update fails.

 

errorMessages=[Agility Support-as-a-Service(TLN-21247): context: rlabs-insight-attribute-461; messages: [ErrorMessage{i18nKey='rlabs.insight.i18n.constraint.violation.ObjectAttributeValueBean.Invalid.Project', parameters=[], additionalMessage=null}]; ]

ObjectTypes : objectTypeResultMap={181=com.riadalabs.jira.plugins.insight.services.imports.common.ImportResult$ObjectTypeResult@654ee18[
errorMessages=[TLN-Organization]

 

2023-07-17 16:20:02,518 [insight-InsightThreadGroup-worker-thread-56] | Unable to update references on object Agility Support-as-a-Service (TLN-21247), ObjectTypeId: 181, Attributes: (AttributeTypeId: 302, value(s):[-1(Agility Support-as-a-Service)],AttributeTypeId: 310, value(s):[-1(20559)],AttributeTypeId: 314, value(s):[-1(21252)],AttributeTypeId: 311, value(s):[-1(1)],AttributeTypeId: 312, value(s):[-1(Mon May 01 02:00:00 CEST 2023)],AttributeTypeId: 461, value(s):[-1(27000)],AttributeTypeId: 462, value(s):[-1(501951948)]), avatar: false with actions: [] due to validation exception. Check your attribute configuration Error messages: context: rlabs-insight-attribute-461; messages: [ErrorMessage{i18nKey='rlabs.insight.i18n.constraint.violation.ObjectAttributeValueBean.Invalid.Project', parameters=[], additionalMessage=null}];

 

When removing the attribute to a jira project, the update of the object is working as expected: 

image.png

 

Any suggestions? 

I can reproduce it on 3 environments.

Jira: v9.4.6

JSM: 5.4.6

 

1 answer

1 accepted

0 votes
Answer accepted
Alex Gay
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.
July 20, 2023

Solved by providing the 'browse' permissions, in the projects permissions scheme,  for the user that is used to import the data.

Suggest an answer

Log in or Sign up to answer