Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

Status updates

$
0
0

Hello everyone,

First I wish everyone here a Happy New Year! Thank you for so many good answers in the last year, I really appreciate your help. Nevertheless I again have to bother you with an understanding problem I have.

We run Project Server 2010 and we're developing a business application. For this purpose I want to make status updates via PSI, I'm particularly trying to update and submit status update for actual work. Now I'm really confused with the role of the related resources.

There are the resource which is assigned to a task, the assignment owner (res_uid_owner property) and the current logged on user. The latter like to run the statusing.updatestatus() method from the PSI Statusing class. My understanding now is as follows:

The current logged on user has two methods

1) Update the status with updatestatus(changexml) with a particular changexml that could 

a) include the RESID-attribute for the <ASSN>-tag

b) exclude the RESID-attribute for the <ASSN>-tag in the case he is self assigned to this assignment

2) Submit the status with

a) submitstatus(...) for assignments for which he is self assigned (correlates with case 1b)

b) submitstatusforresource(...) for assignments which is he not assigned to (correlates to case 1a)

So far my understanding about everything. Now as I'm often facing the error "User is attempting to update an assignment they do not own" there seem to be some problems with my understanding. 

i) What is the role of the assignment owner? 

ii) Do I have to inlucde the assignment owner UID in the RESID-attribute or the resource UID of the assigned resource?

iii) Why do I get the above error even in the case where the assignment owner equals both the assigned resource and the current logged on resource?

iv) Could this method be some kind of buggy?

Thank you for your hints and answers,

Tom

 


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>