Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hi All,
I am trying to update an issue which has some information and I need to update the issue by just adding new information to it, so my issue should add information to the existing one but when I am trying to update the issue with im editissue command it is overwriting the existing record which is not needed.
My command for creating the content is :
im createcontent --insertLocation --parentID=7899401 --type="ALM_Test Case" --field=Category="Heading" --richContentField=ALM_Text="<html><body><H4>Test data insertion for the first time</H4><p>Feature Sets<br> line breaks<br> in a text,<br> use the br<br> element.</p></body></html>"
this created a content with id 7900381
now I am executing the below command to update the issue and I am expecting it to append the information but it is replacing the existing information by overwriting it.
im editissue --richContentField=ALM_Text="<html><div class="section" id="feature-sets"><h1>Feature Sets</h1><ul class="simple"><li>Test data to be updated in existing content</li></ul></div></html>" 7900381
Please let me know if there is some additional parameters to the command or some other command to update the issue without overwriting it.
Thanks!!!
Hello,
This could be possible if you add Old + New data in script.
Instead of,
im editissue --richContentField=ALM_Text=="<html><div class="section" id="feature-sets"><h1>Feature Sets</h1><ul class="simple"><li>Test data to be updated in existing content</li></ul></div></html>" 7900381
Use
im editissue --richContentField=ALM_Text=="<html><body><H4>Test data insertion for the first time</H4><p>Feature Sets<br> line breaks<br> in a text,<br> use the br<br> element.</p></body><div class="section" id="feature-sets"><h1>Feature Sets</h1><ul class="simple"><li>Test data to be updated in existing content</li></ul></div></html>" 7900381
Thanks