Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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

0 votes

Comments

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

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

1 vote

Agreed, getting tired to write it so often.



2 answers

Permanent link

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

0 votes


Permanent link

Good Morning,

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

Regards

Matt Muller

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jan 03 '18, 8:54 a.m.

Question was seen: 2,448 times

Last updated: Jan 04 '18, 4:48 a.m.

Related questions
Confirmation Cancel Confirm