Troubleshooting the 'Value for featureId is invalid' Error in API Story Updates in Jira Align
Summary
Given a certain data setup, JA API users receive an error when attempting to update a Story via API:
{'status': 'FAILED', 'status_code': 400, 'response': 'Cannot update story with id xxxxx. Value for featureId is invalid.'}
This is likely caused by the Story’s parent Feature not sharing a Program with the Story.
Environment
Jira Align
Diagnosis
This is likely caused by the Story’s parent Feature not sharing a Program with the Story.
Cause
This is likely caused by the Story’s parent Feature not sharing a Program with the Story.
Solution
Confirm the error is caused by different Programs
The Story belongs in Program 1 and is contained in Program 2 Feature
The parent Feature belongs to Program 2 and does not have additional programs
Assuming the Story and Feature do not share a Program, find out what the customer intends.
Was the association of parent Feature to child Story a mistake? If so, have them unlink the Story from the parent Feature. They can now update the Story via API.
To prevent their data from entering this state again, verify that the Approach toggle is Off for their Portfolio:
ii. If the Audit Log indicates that the connector created the association between Story and Feature, suggest a different Jira project mapping. Advisory Services recommends against multi-program approaches. If the customer has Jira Epics with Jira Stories in other Jira projects, the customer should consider mapping all of those Jira projects to the same Align program. This prevents the connector from creating multi-program Features.
b. Does the customer want to use a multi-program approach? Note that Advisory Services recommends against this as multi-program approaches cause problems for reports and data rollups.
- If the customer wants multi-program in spite of the risks, they can enable it in Settings > Details Panels Settings: Approach
ii. They can then set a Multi-program Feature on the parent Feature and add the child Story’s Program as an Additional Program:
iii. Going forward, with Approach enabled, the connector will add the Story’s Program as an Additional Program to the parent Feature.