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

JS Approvals

 Is it possible to get approval or approver from JS? 

0 votes


Accepted answer

Permanent link
No.  Assuming JS means JavaScript. See https://jazz.net/library/article/1093 Lab 5 the first sections for what you can access and with JavaScript and what you can't.
Tomislav Klisanic selected this answer as the correct answer

0 votes

Comments

Thought so :(  Tnx

Thinking again, approvals are not attribute based, so you will probably have no luck with a value provider and will have to use other techniques like this: https://rsjazz.wordpress.com/2012/11/30/a-create-approval-work-item-save-participant/

 I was looking to set read only on certain fields if work item is approved.

I created a test script to see if it would work but I can't get to the approval from the workItem inside javascript function.

I have not tried that. You could try if you can implement a condition in Java similar to https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/  and if that works for you. I tried this approach and it worked for me for roles, which you can also not access in JavaScript.

 Will try that. Hope it will work.

showing 5 of 6 show 1 more comments

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
× 152

Question asked: Jan 13 '14, 9:17 a.m.

Question was seen: 3,962 times

Last updated: Jan 13 '14, 10:54 a.m.

Confirmation Cancel Confirm