Uploaded image for project: 'Jira Align'
  1. Jira Align
  2. JIRAALIGN-4466

Feature summary field needs UI validation to be < 255 characters

    • 1
    • Severity 3 - Minor
    • No

      Issue Summary

      The feature summary field allows users to enter more than 255 characters in Jira Align but Jira allows only 255.
      When synchronising the feature created in Jira Align to Jira, the API will give the error "summary: Summary must be less than 255 characters.", and the feature will not be pushed to Jira as a result.

      Steps to Reproduce

      1. Create a Feature for a program associated with a Jira Project
      2. Add to the description and summary a text with more than 255 a mix of accented and non characters such as:
        Sed ut perspiciatis unde omnis iste natus error sît voluptatem accusantium doloremque laudantium, totam rm aperiam, eaque ipsa quaé ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quià voluptas sit aspernatur aut odit aut fugit, sed quia
        
      1. Select the 'Jira Project' accordingly from the drop-down field.
      2. Click on the 'Save' button
        -> No error

      Expected Results

      Similar to the validation logic on the Feature name, the field should not allow users to enter more than 255 characters.

      Actual Results

      No error is given to the user. The text may be truncated but if not once the Jira Connector tries to create the issue in Jira, the error below is thrown:

      { 
         Exception: AgileCraft.Jira.Api.Model.JiraApiException: summary: Summary must be less than 255 characters.
         at AgileCraft.Jira.Api.JiraManager.ExecuteWithResponse[T](RestRequest request, String jiraApiResource, HttpStatusCode expectedHttpStatusCode, Boolean forceResponseLogging, Boolean& sessionAuthenticationExpiration, Boolean throwExceptionOnError, Boolean ignoreLogoutResponse, Boolean hideRequestBody, String[] queryParametersToHashForLogging) in C:\projects\alignintegration\AgileCraft.Jira.Api\JiraManager.cs:line 2214
         at AgileCraft.Jira.Api.JiraManager.CreateEpic(CreateEpic newIssue, Int32 FeatureID, String projectKey) in C:\projects\alignintegration\AgileCraft.Jira.Api\JiraManager.cs:line 1055
         at AgileCraft_Jira.AgileCraft.CreateFeatureInJira(JiraManager manager, DataRow row2, Boolean multipleFeature) in C:\projects\alignintegration\Connectors\JiraServiceProduction\AgileCraft_Jira\AgileCraft.cs:line 5980
         Level: Error
         MessageTemplate: CreateFeatureInJira:Failed to create Jira issue for Feature
         Properties: { [-]
           Action: IssuePushToJira
           Build: 10.111.2.20578
           ConnectorId: 1
           CorrelationId: 1213256311
           Customer: <Customer>
           Event: ContinuousTimer
           ExceptionDetail: { [-]
             HResult: -2146233088
             Message: summary: Summary must be less than 255 characters.
             Source: AgileCraft.Jira.Api
             StackTrace:    at AgileCraft.Jira.Api.JiraManager.ExecuteWithResponse[T](RestRequest request, String jiraApiResource, HttpStatusCode expectedHttpStatusCode, Boolean forceResponseLogging, Boolean& sessionAuthenticationExpiration, Boolean throwExceptionOnError, Boolean ignoreLogoutResponse, Boolean hideRequestBody, String[] queryParametersToHashForLogging) in C:\projects\alignintegration\AgileCraft.Jira.Api\JiraManager.cs:line 2214
         at AgileCraft.Jira.Api.JiraManager.CreateEpic(CreateEpic newIssue, Int32 FeatureID, String projectKey) in C:\projects\alignintegration\AgileCraft.Jira.Api\JiraManager.cs:line 1055
         at AgileCraft_Jira.AgileCraft.CreateFeatureInJira(JiraManager manager, DataRow row2, Boolean multipleFeature) in C:\projects\alignintegration\Connectors\JiraServiceProduction\AgileCraft_Jira\AgileCraft.cs:line 5980
             TargetSite: RestSharp.IRestResponse`1[T] ExecuteWithResponse[T](RestSharp.RestRequest, System.String, System.Net.HttpStatusCode, Boolean, Boolean ByRef, Boolean, Boolean, Boolean, System.String[])
             Type: AgileCraft.Jira.Api.Model.JiraApiException
           }
           FeatureId: <FeatureId>
           JiraProjectKey: <ProjectKey>
           JiraProjectKeys: [ [+]
           ]
           MachineName: <MachineName>
           Method: RunJira_ProcessProject_SyncAgileCraftToJira
           ProcessingType: Serial
           Product: AgileCraft_Jira
           ProgramId: 17
           ServiceName: AgileCraft_Jira_<Customer>_1
           ThreadId: 3
         }
         RenderedMessage: CreateFeatureInJira:Failed to create Jira issue for Feature
         Timestamp: 2022-09-13T15:58:14.7525263+02:00
      }
      

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available

        1. JiraSimmary255LimitExceed.gif
          28.66 MB
          Francois Panaget

          Form Name

            [JIRAALIGN-4466] Feature summary field needs UI validation to be < 255 characters

            backbone-sync-bot made changes -
            Status Original: Closed [ 6 ] New: Closed [ 6 ]
            backbone-sync-bot made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            backbone-sync-bot made changes -
            Status Original: In Review [ 10051 ] New: Waiting for Release [ 12075 ]
            Kyle Foreman made changes -
            Description Original: h3. Issue Summary

            The feature summary field allows users to enter more than 255 characters in Jira Align but Jira allows only 255.
            When synchronising the feature created in Jira Align to Jira, the API will give the error {_}"summary: Summary must be less than 255 characters."{_}, and the feature will not be pushed to Jira as a result.
            h3. Steps to Reproduce
             # Create a Feature for a program associated with a Jira Project
             # Add to the description and summary a text with more than 255 a mix of accented and non characters such as:
            {noformat}
            Sed ut perspiciatis unde omnis iste natus error sît voluptatem accusantium doloremque laudantium, totam rm aperiam, eaque ipsa quaé ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quià voluptas sit aspernatur aut odit aut fugit, sed quia
            {noformat}

             # Select the 'Jira Project' accordingly from the drop-down field.
             # Click on the 'Save' button
            -> No error

            !JiraSimmary255LimitExceed.gif|width=806,height=474!
            h3. Expected Results

            An error message appears when saving the feature such as:
            {noformat}
            Feature Summary: Text length exceeded - 255 Characters
            {noformat}
            h3. Actual Results

            No error is given to the user. The text may be truncated but if not once the Jira Connector tries to create the issue in Jira, the error below is thrown:
            {noformat}
            {
               Exception: AgileCraft.Jira.Api.Model.JiraApiException: summary: Summary must be less than 255 characters.
               at AgileCraft.Jira.Api.JiraManager.ExecuteWithResponse[T](RestRequest request, String jiraApiResource, HttpStatusCode expectedHttpStatusCode, Boolean forceResponseLogging, Boolean& sessionAuthenticationExpiration, Boolean throwExceptionOnError, Boolean ignoreLogoutResponse, Boolean hideRequestBody, String[] queryParametersToHashForLogging) in C:\projects\alignintegration\AgileCraft.Jira.Api\JiraManager.cs:line 2214
               at AgileCraft.Jira.Api.JiraManager.CreateEpic(CreateEpic newIssue, Int32 FeatureID, String projectKey) in C:\projects\alignintegration\AgileCraft.Jira.Api\JiraManager.cs:line 1055
               at AgileCraft_Jira.AgileCraft.CreateFeatureInJira(JiraManager manager, DataRow row2, Boolean multipleFeature) in C:\projects\alignintegration\Connectors\JiraServiceProduction\AgileCraft_Jira\AgileCraft.cs:line 5980
               Level: Error
               MessageTemplate: CreateFeatureInJira:Failed to create Jira issue for Feature
               Properties: { [-]
                 Action: IssuePushToJira
                 Build: 10.111.2.20578
                 ConnectorId: 1
                 CorrelationId: 1213256311
                 Customer: <Customer>
                 Event: ContinuousTimer
                 ExceptionDetail: { [-]
                   HResult: -2146233088
                   Message: summary: Summary must be less than 255 characters.
                   Source: AgileCraft.Jira.Api
                   StackTrace: at AgileCraft.Jira.Api.JiraManager.ExecuteWithResponse[T](RestRequest request, String jiraApiResource, HttpStatusCode expectedHttpStatusCode, Boolean forceResponseLogging, Boolean& sessionAuthenticationExpiration, Boolean throwExceptionOnError, Boolean ignoreLogoutResponse, Boolean hideRequestBody, String[] queryParametersToHashForLogging) in C:\projects\alignintegration\AgileCraft.Jira.Api\JiraManager.cs:line 2214
               at AgileCraft.Jira.Api.JiraManager.CreateEpic(CreateEpic newIssue, Int32 FeatureID, String projectKey) in C:\projects\alignintegration\AgileCraft.Jira.Api\JiraManager.cs:line 1055
               at AgileCraft_Jira.AgileCraft.CreateFeatureInJira(JiraManager manager, DataRow row2, Boolean multipleFeature) in C:\projects\alignintegration\Connectors\JiraServiceProduction\AgileCraft_Jira\AgileCraft.cs:line 5980
                   TargetSite: RestSharp.IRestResponse`1[T] ExecuteWithResponse[T](RestSharp.RestRequest, System.String, System.Net.HttpStatusCode, Boolean, Boolean ByRef, Boolean, Boolean, Boolean, System.String[])
                   Type: AgileCraft.Jira.Api.Model.JiraApiException
                 }
                 FeatureId: <FeatureId>
                 JiraProjectKey: <ProjectKey>
                 JiraProjectKeys: [ [+]
                 ]
                 MachineName: <MachineName>
                 Method: RunJira_ProcessProject_SyncAgileCraftToJira
                 ProcessingType: Serial
                 Product: AgileCraft_Jira
                 ProgramId: 17
                 ServiceName: AgileCraft_Jira_<Customer>_1
                 ThreadId: 3
               }
               RenderedMessage: CreateFeatureInJira:Failed to create Jira issue for Feature
               Timestamp: 2022-09-13T15:58:14.7525263+02:00
            }
            {noformat}
            h3. Workaround

            Currently, there is no known workaround for this behavior. A workaround will be added here when available
            New: h3. Issue Summary

            The feature summary field allows users to enter more than 255 characters in Jira Align but Jira allows only 255.
            When synchronising the feature created in Jira Align to Jira, the API will give the error {_}"summary: Summary must be less than 255 characters."{_}, and the feature will not be pushed to Jira as a result.
            h3. Steps to Reproduce
             # Create a Feature for a program associated with a Jira Project
             # Add to the description and summary a text with more than 255 a mix of accented and non characters such as:
            {noformat}
            Sed ut perspiciatis unde omnis iste natus error sît voluptatem accusantium doloremque laudantium, totam rm aperiam, eaque ipsa quaé ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quià voluptas sit aspernatur aut odit aut fugit, sed quia
            {noformat}

             # Select the 'Jira Project' accordingly from the drop-down field.
             # Click on the 'Save' button
            -> No error

            !JiraSimmary255LimitExceed.gif|width=806,height=474!
            h3. Expected Results

            Similar to the validation logic on the Feature name, the field should not allow users to enter more than 255 characters.
            h3. Actual Results

            No error is given to the user. The text may be truncated but if not once the Jira Connector tries to create the issue in Jira, the error below is thrown:
            {noformat}
            {
               Exception: AgileCraft.Jira.Api.Model.JiraApiException: summary: Summary must be less than 255 characters.
               at AgileCraft.Jira.Api.JiraManager.ExecuteWithResponse[T](RestRequest request, String jiraApiResource, HttpStatusCode expectedHttpStatusCode, Boolean forceResponseLogging, Boolean& sessionAuthenticationExpiration, Boolean throwExceptionOnError, Boolean ignoreLogoutResponse, Boolean hideRequestBody, String[] queryParametersToHashForLogging) in C:\projects\alignintegration\AgileCraft.Jira.Api\JiraManager.cs:line 2214
               at AgileCraft.Jira.Api.JiraManager.CreateEpic(CreateEpic newIssue, Int32 FeatureID, String projectKey) in C:\projects\alignintegration\AgileCraft.Jira.Api\JiraManager.cs:line 1055
               at AgileCraft_Jira.AgileCraft.CreateFeatureInJira(JiraManager manager, DataRow row2, Boolean multipleFeature) in C:\projects\alignintegration\Connectors\JiraServiceProduction\AgileCraft_Jira\AgileCraft.cs:line 5980
               Level: Error
               MessageTemplate: CreateFeatureInJira:Failed to create Jira issue for Feature
               Properties: { [-]
                 Action: IssuePushToJira
                 Build: 10.111.2.20578
                 ConnectorId: 1
                 CorrelationId: 1213256311
                 Customer: <Customer>
                 Event: ContinuousTimer
                 ExceptionDetail: { [-]
                   HResult: -2146233088
                   Message: summary: Summary must be less than 255 characters.
                   Source: AgileCraft.Jira.Api
                   StackTrace: at AgileCraft.Jira.Api.JiraManager.ExecuteWithResponse[T](RestRequest request, String jiraApiResource, HttpStatusCode expectedHttpStatusCode, Boolean forceResponseLogging, Boolean& sessionAuthenticationExpiration, Boolean throwExceptionOnError, Boolean ignoreLogoutResponse, Boolean hideRequestBody, String[] queryParametersToHashForLogging) in C:\projects\alignintegration\AgileCraft.Jira.Api\JiraManager.cs:line 2214
               at AgileCraft.Jira.Api.JiraManager.CreateEpic(CreateEpic newIssue, Int32 FeatureID, String projectKey) in C:\projects\alignintegration\AgileCraft.Jira.Api\JiraManager.cs:line 1055
               at AgileCraft_Jira.AgileCraft.CreateFeatureInJira(JiraManager manager, DataRow row2, Boolean multipleFeature) in C:\projects\alignintegration\Connectors\JiraServiceProduction\AgileCraft_Jira\AgileCraft.cs:line 5980
                   TargetSite: RestSharp.IRestResponse`1[T] ExecuteWithResponse[T](RestSharp.RestRequest, System.String, System.Net.HttpStatusCode, Boolean, Boolean ByRef, Boolean, Boolean, Boolean, System.String[])
                   Type: AgileCraft.Jira.Api.Model.JiraApiException
                 }
                 FeatureId: <FeatureId>
                 JiraProjectKey: <ProjectKey>
                 JiraProjectKeys: [ [+]
                 ]
                 MachineName: <MachineName>
                 Method: RunJira_ProcessProject_SyncAgileCraftToJira
                 ProcessingType: Serial
                 Product: AgileCraft_Jira
                 ProgramId: 17
                 ServiceName: AgileCraft_Jira_<Customer>_1
                 ThreadId: 3
               }
               RenderedMessage: CreateFeatureInJira:Failed to create Jira issue for Feature
               Timestamp: 2022-09-13T15:58:14.7525263+02:00
            }
            {noformat}
            h3. Workaround

            Currently, there is no known workaround for this behavior. A workaround will be added here when available
            backbone-sync-bot made changes -
            Fix Version/s New: 10.120.0 [ 104677 ]
            backbone-sync-bot made changes -
            Status Original: In Progress [ 3 ] New: In Review [ 10051 ]
            backbone-sync-bot made changes -
            Status Original: In Review [ 10051 ] New: In Progress [ 3 ]
            backbone-sync-bot made changes -
            Status Original: In Progress [ 3 ] New: In Review [ 10051 ]
            backbone-sync-bot made changes -
            Status Original: In Review [ 10051 ] New: In Progress [ 3 ]
            backbone-sync-bot made changes -
            Status Original: In Progress [ 3 ] New: In Review [ 10051 ]

              csmith1@atlassian.com Cap Smith
              646db21d89d1 Francois Panaget
              Affected customers:
              0 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: