It's all about the answers!

Ask a question

How do I automatically add approvals to newly created work items?


Matthew More (40212) | asked Jan 03 '18, 8:54 a.m.
converted to question Jan 03 '18, 4:34 p.m. by Geoffrey Clemm (30.1k33035)

I need to add the users as approvals to each new created WI in one project 


Comments
Ralph Schoon commented Jan 03 '18, 9:36 a.m. | edited Jan 03 '18, 10:09 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

There is no way I know of to do something similar using the attribute customization JavaScript. The only options are

  1. The API's using some kind of batch (which costs a lot of performance) see: https://rsjazz.wordpress.com/2012/10/01/adding-approvals-to-work-items-using-the-plain-java-client-libraries/
  2. Use a follow up action. This would require that anyone that saves the work item has permission to add approvers. See https://rsjazz.wordpress.com/2012/11/30/a-create-approval-work-item-save-participant/
  3. Another option could be an asynchronous solution that monitors work item changes and adds stuff in a server permission process or something based on change events that does it asynchronously as well

I don't think there is a nice solution here.

1 would be great If you can find a query to find the work items or some other means to limit the number of items to look at a system user could be used

2. would be good and almost immediate if you can provide all users the requires permissions or make sure the users that trigger it always have it


1
Geoffrey Clemm commented Jan 03 '18, 4:36 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Reminder: Please post new questions as questions, and not as an "answer" to a related question.


Ralph Schoon commented Jan 04 '18, 4:29 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Agreed, getting tired to write it so often.

2 answers



permanent link
Ralph Schoon (63.1k33645) | answered Jan 04 '18, 4:29 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

There is no way I know of to do something similar using the attribute customization JavaScript. The only options are

  1. The API's using some kind of batch (which costs a lot of performance) see: https://rsjazz.wordpress.com/2012/10/01/adding-approvals-to-work-items-using-the-plain-java-client-libraries/
  2. Use a follow up action. This would require that anyone that saves the work item has permission to add approvers. See https://rsjazz.wordpress.com/2012/11/30/a-create-approval-work-item-save-participant/
  3. Another option could be an asynchronous solution that monitors work item changes and adds stuff in a server permission process or something based on change events that does it asynchronously as well

I don't think there is a nice solution here.

1 would be great If you can find a query to find the work items or some other means to limit the number of items to look at a system user could be used

  1. would be good and almost immediate if you can provide all users the requires permissions or make sure the users that trigger it always have it

permanent link
Matt Muller (59813274) | answered Jan 04 '18, 4:48 a.m.

Good Morning,

If the approvers are the same?   have you tried a Work Item Template?

Regards

Matt Muller

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.