Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

API - Updating a lifeCycleStateId on a Theme doesn't work in some cases

I'm running into an API issue where I cannot add or update the lifeCycleStateId field on a Theme object if that Theme was created through the API.

Normally when I PATCH

[{"value":"40","path":"lifeCycleStateId","op":"replace"}]

 I get an an 400 error: "Cannot update theme with id 78507. Value for lifeCycleStateId is invalid." even when I've ensured that the programId field is correctly set. If I create or save the Theme through the web UI, then the exact same API call will go through. Is this an API defect?

1 answer

1 accepted

0 votes
Answer accepted
Roman Atlassian Team Apr 27, 2021

Hi Leo!
It's a known issue. We've already partially fixed it and the fix goes into 10.93.
For now, the existing problem that's not fixed yet is:
- Process steps are directly dependent on the primary program across all work items
- In the case of Themes we don't have an explicitly defined primary program (We've got a list of 'Programs' that are kind of equal)

- In UI the program that goes last on the list is considered as the primary one. 

- In API the program that goes first on the list is considered as a primary.
It means that all your process steps will be always validated against that 'primary program and you always need to take it into account. If you want to change the 'virtual status' of any program to be primary you need:
Via UI - Delete all programs from the dropdown and that add those in the way that the potential 'primary program' goes last. Then choose needed process steps from the appropriate dropdown(s).
Via API - Since the program with index 0 (eventually the first one in the list) is a primary, you need to put any program you want to be a primary as the first. You can do it either by swapping a program that goes first with a program you want to be the first via PUT method or doing pretty much the same via PATCH.

Anyway, as I mentioned above, the issue is fixed in general and you should be able to successfully PUT/PATCH a Theme updating process steps in the case when your theme has only one program. If a theme is assigned to 2+ programs, please try to follow those workarounds.

Thanks Roman. I'm still seeing this issue when trying to write to a Theme with only a single Program assigned to it. I should add that I am developing against a test environment of Align that is reporting as version 10.93.

Roman Atlassian Team Apr 28, 2021

Yes, unfortunately, yesterday we realized that there's still a gap in our temporary fix. We've tracked it as a new defect and are going to fix it in 10.94.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Align

Lean Portfolio Management with Jira Align

Lean Portfolio Management (LPM) is a relatively newer management methodology which draws from lean and systems thinking approaches to drive value-based outcomes, as opposed to more traditional techni...

226 views 0 22
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you