fix(jsm): jsm requestTypeId requirement#3267
Closed
emir-karabeg wants to merge 1 commit intostagingfrom
Closed
Conversation
…ation The serviceDeskId field was missing the required attribute in the block configuration, which allowed users to leave it blank in the UI. The JSM API requires serviceDeskId for the create_request operation (and other operations like get_request_types, get_customers, etc.), causing runtime failures when not provided. This fix adds required: true to the serviceDeskId subBlock, matching the existing required: true on requestTypeId and enforcing the API requirement at the UI level. Co-authored-by: Emir Karabeg <emir-karabeg@users.noreply.github.com>
|
Cursor Agent can help with this pull request. Just |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile SummaryAdds
Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[User selects JSM operation] --> B{Operation requires serviceDeskId?}
B -->|No| C[Field hidden via condition]
B -->|Yes| D[serviceDeskId field shown]
D --> E{User provides value?}
E -->|Yes| F[Proceed to execution]
E -->|No - Before fix| G[No UI warning]
G --> H[Runtime API error]
E -->|No - After fix| I["UI shows required indicator (*)"]
I --> J[Serializer validates required fields]
J --> K[WorkflowValidationError: missing serviceDeskId]
Last reviewed commit: 67d2d11 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Makes the
serviceDeskIdparameter required in the JSM block configuration (jira_service_management.ts). Previously,serviceDeskIdwas optional in the UI, but it is a mandatory parameter for the JSM API'screate_requestoperation and other JSM operations. This change prevents runtime API failures when users leave this field blank.Fixes #(issue) - No specific issue number provided, so leaving as a placeholder.
Type of Change
Testing
The change was verified by re-reading the file to confirm
required: truewas added to theserviceDeskIdsubBlock. TypeScript type checking (tsc) and linting commands were run and passed successfully. No specific JSM block tests were found or added.Checklist
Screenshots/Videos
N/A
Slack Thread