Using a workflow validator and using the name in the exception results in an error in the attached screenshot:

      throw new com.opensymphony.workflow.InvalidInputException("summary", "Summary is incorrect")

      The expectation is that the error message will be displayed next to the summary field.

      The following will not work:

      throw new InvalidInputException("summary", "Summary is incorrect")
      

      But the following will work although not by the field:

      throw new InvalidInputException("Summary is incorrect")
      

          Form Name

            [JSDSERVER-3592] Workflow validators result in error when using name

            Owen made changes -
            Workflow Original: JSD Bug Workflow v5 - TEMP [ 2305116 ] New: JAC Bug Workflow v3 [ 3125514 ]
            Status Original: Done [ 10044 ] New: Closed [ 6 ]

            Payne added a comment -

            As Jonny Carter pointed out on 4/19/18, a similar bug is now present; I'm encountering it in JSD Server 3.15.1, just as he describes.

            Payne added a comment - As Jonny Carter pointed out on 4/19/18, a similar bug is now present; I'm encountering it in JSD Server 3.15.1, just as he describes.
            Eric Storch (Inactive) made changes -
            Link New: This issue is blocked by JSDSERVER-5781 [ JSDSERVER-5781 ]

            There seems to be a regression of a worser kind in 3.10.2 (and possibly other versions). 

            So, if your validator just throws a plain old exception with no field specified, you get a super generic error in the service desk portal that doesn't contain your custom message:

            throw new InvalidInputException("Summary is incorrect") 

             

            If you do go to the trouble of specifying a field, you get the same generic exception plus your custom message (with no indication of the field):

            throw new InvalidInputException(com.atlassian.jira.issue.IssueFieldConstants.COMPONENTS, "Summary is incorrect") 

             

            Jonny Carter added a comment - There seems to be a regression of a worser kind in 3.10.2 (and possibly other versions).  So, if your validator just throws a plain old exception with no field specified, you get a super generic error in the service desk portal that doesn't contain your custom message: throw new InvalidInputException( "Summary is incorrect" )   If you do go to the trouble of specifying a field, you get the same generic exception  plus your custom message (with no indication of the field): throw new InvalidInputException(com.atlassian.jira.issue.IssueFieldConstants.COMPONENTS, "Summary is incorrect" )  
            Jonny Carter made changes -
            Attachment New: The Slightly Better Error Message.png [ 314048 ]
            Jonny Carter made changes -
            Attachment New: The Bad Error Message.png [ 314047 ]
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v5 [ 2059043 ] New: JSD Bug Workflow v5 - TEMP [ 2305116 ]
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v5 - TEMP [ 2056435 ] New: JSD Bug Workflow v5 [ 2059043 ]
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v5 [ 1955996 ] New: JSD Bug Workflow v5 - TEMP [ 2056435 ]
            Katherine Yabut made changes -
            Workflow Original: JSD Bug Workflow v4 [ 1615994 ] New: JSD Bug Workflow v5 [ 1955996 ]

              pteen pat (Inactive)
              4c1113d0d9eb adammarkham
              Affected customers:
              1 This affects my team
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: