We try to create a Portfolio Resource (ResourceDTO) using the Portfolio Java API. To create a resource we use a JiraUserDTO of a real Jira user, that is part of the PersonDTO that is part of the ResourceDTO to create.
Now the problem is, that the following code creates the Resource but also a new Person in the database, that is inconsistent. It should reuse the passed in Person and not create a "wrong" new one. After the following code, the PersonAPI cannot find any Persons anymore - Portfolio Plans don't work anymore:
personJean = personApi.findById(214L).value();//it finds the correct person
ResourceDTO resourceJean = ResourceDTO.builder().withPerson(personJean).withTeamId(
resourceId = resourceApi.create(resourceJean);//creates the resource but a second Person inconsistent in database, but should use existing person personJean
We use Portfolio 3.11.0.
Thanks a lot for any hints or suggestions! BR, Sebastian
To see this feature in action check out our recent dependencies demo here: https /www.youtube.com/watch?v=eQu5VsUqyZA Keeping on top of your dependencies is a key part of ensuring project success....
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