Skip to main content
1-Visitor
May 3, 2013
Question

How to put pre-formatted text into a RichtTextField?

  • May 3, 2013
  • 1 reply
  • 1464 views

Hi @all,

we want to prefill RichTextFields with formatted text. We want to do this in different ways:

1. by an Assignment-Trigger: When a certain rule is fullfilled a trigger should write some text into this field. In the trigger-config at the "assignment"-Tab we can do this, but we have no chance to format this text in any way.

2. by API or CLI. Since RichText in integrity seems to be a subset of HTML we tried to use some HTML-Tags in an editfield-command, but this doesnt work too.

Thanks,

kind regards, Jens

    1 reply

    1-Visitor
    May 3, 2013

    Hi Jens

    for 2. which syntax are you using?

    see CLI Docu on im editissue:

    --richContentField=value

    specifies a rich content field and its value for the new issue, where value is of the form "richcontentfieldname=fieldValue".

    Note: In the korn shell command line interface, HTML tags must be surrounded by quotes, for example, "<b>Feature

    Overview</b>".

    In the Windows command line interface (cmd.exe), the ^ escape character must precede the < and > characters in HTML tags, for example, ^<b^>Feature Overview^</b^> .

    JensN.1-VisitorAuthor
    1-Visitor
    May 6, 2013

    Hi Thierry,

    thanks, i didnt knew this kind of escaping, i will try this...

    kind regards, Jens