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

How to set the value for Boolean attribute in RTC plugin

 Hello All,

I am able to set value as true if it is false.
But when i am trying to set value as false and current value is true. its not working.

if (ele.equalsIgnoreCase((String)pair.getValue()))
{
workingCopy.setValue(impactedApp,Boolean.valueOf(true));
flag=true;
}
}
if(flag==false)
{
workingCopy.setValue(impactedApp,Boolean.valueOf(false));
}

0 votes



One answer

Permanent link

 I am getting really frustrated recently with the quality of the questions in this forum, especially API questions. If someone wonts others to spend valuable time to try to answer their questions, I think it can be expected that the question provides as much information as possible in the first place.  How should I ask a question in the Forum if I want to receive useful answers? is what I would expect. Instead the questions are getting shorter and shorter and there seems to be an expectation that additional info can be provided in subsequent comments.


So here my answer based on what is communicated and I will likely not get back to this question.

The tagging is completely incorrect.

"But when I am trying to set value as false and current value is true. its not working." does not explain anything. There is no information what the expectation would be, or if there is an error.

The code you share does not make a lot of sense. There is a stray closing bracket in the middle and the second if is dead code for all I can tell. 

The workingCopy is never saved e.g. in a WorkitemOperation and the new work item state is never retrieved. So why would the value change? 

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
× 6,167

Question asked: Oct 18 '21, 6:46 a.m.

Question was seen: 1,587 times

Last updated: Oct 18 '21, 7:31 a.m.

Confirmation Cancel Confirm