Uploaded image for project: 'Automation for Jira Server'
  1. Automation for Jira Server
  2. JIRAAUTOSERVER-1035

Permit text formatting in Send Web Request - Custom Data

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • Actions
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Issue Summary

      There are cases in which it would be useful for customers to be able to format the data inside Custom data field of the Send web request action. For example, an application may require a Carriage Return/Line Feed (\r\n) between lines, but the data sent contains only Line Feeds (\n).

      Steps to Reproduce

      For the case mentioned above, we can do the following:

      1. Create an automation with a Send web request action
      2. Enable org.apache.http.wire in the logs and set it to TRACE
      3. Put some data in the Custom data box, including line breaks between text
      4. Trigger the automation

      In the logs we see Line Feeds at the end of each line of text

      2024-06-28 09:31:07,357+0000 automation-webhook-sender:thread-1 DEBUG      [o.apache.http.wire] http-outgoing-278 >> "-----d368b292[\n]"
      2024-06-28 09:31:07,357+0000 automation-webhook-sender:thread-1 DEBUG      [o.apache.http.wire] http-outgoing-278 >> "Content-Disposition: form-data; name="token"[\n]"
      2024-06-28 09:31:07,358+0000 automation-webhook-sender:thread-1 DEBUG      [o.apache.http.wire] http-outgoing-278 >> "[\n]"

      and there is no apparent way to change this to a preferred character.

      Workaround

      Depending on customer needs, it may be possible to create a custom field and then use string manipulations via smart values, but this is not appropriate in all cases.

            Unassigned Unassigned
            shoornaert@atlassian.com Scott Hoornaert
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: