Sprints are not importing into SNOW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2023 08:01 AM
If i create sprints in Jira, then run Import Issues in SNOW the sprints will not import into SNOW -- stories and epics will but not sprints. I have tried changing mapping configs, deleted and re-inserted Sprint maps -- nothing works -- my current mapping is below -- any insights will be appreciated..

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2023 05:30 AM
Are you using integration hub here? or via rest API?
---------------
Regards,
Rajesh Singh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2023 05:37 AM
rest api

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2023 05:45 AM
The OOTB Jira integration primarily focuses on importing issues like stories and epics, but you can extend the integration to include sprints by following these steps:
-
Create a custom table in ServiceNow to store sprint data: Create a new table, for example, 'x_snc_jira_sprint', with fields that match the data you need to import from Jira, such as sprint name, start date, end date, and status.
-
Extend the Jira integration to include sprints: Create a new scripted REST API in ServiceNow to fetch sprint data from Jira. You can model it after the existing Jira integration API, adjusting the API endpoint to target the Jira Agile REST API for sprints. For example, you would use an endpoint like this:
https://<your_jira_domain>/rest/agile/1.0/board/<board_id>/sprint
Ensure that you handle pagination if necessary, as the Jira Agile REST API may return results in multiple pages.
-
Parse and store the sprint data: After fetching the sprint data from Jira, parse the JSON response, and create or update records in your custom 'x_snc_jira_sprint' table. You can map the relevant fields from the Jira sprint data to the corresponding fields in your ServiceNow table.
-
Update the import process: Modify the Import Issues process to also call your custom REST API for sprints. This will ensure that sprints are imported alongside stories and epics when you run the import process.
-
Map sprints to stories and epics: To associate stories and epics with their corresponding sprints, you'll need to modify the existing issue import process to update the related records in ServiceNow. This will involve updating the stories and epics in ServiceNow with the appropriate sprint information based on the sprint ID provided by Jira.
If its still failing, try below troubleshooting steps
-
Check logs for errors: Inspect the logs in ServiceNow and Jira for any errors or warnings related to the integration. This may help you identify any issues with the REST API calls, authentication, or data processing.
-
Verify REST API calls: Double-check that the REST API call to fetch sprint data from Jira is successful. You can do this by using a tool like Postman to make the REST API call to Jira with the same credentials and API endpoint you're using in your ServiceNow script. Ensure that you receive the expected sprint data in the response.
-
Test data processing: Ensure that the JSON data fetched from Jira is being processed and stored correctly in your custom ServiceNow table. Add some debugging statements in your script to print the data being processed, and check if there are any issues in parsing or storing the data.
-
Validate data mapping: Make sure the mapping of fields between Jira sprints and ServiceNow records is correct. Mismatches in field names or data types could cause the import to fail.
-
Check script execution: Verify that your custom sprint import script is being executed when you run the Import Issues process. If your script is separate from the default Import Issues script, make sure it's being called and executed as expected.
-
Test permissions: Confirm that the account used for the integration has the appropriate permissions in both Jira and ServiceNow. The account should have access to the Jira Agile REST API and the necessary permissions to create, update, and delete records in ServiceNow.
---------------
Regards,
Rajesh Singh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2023 06:17 AM
Thank you for your extensive reply Rajesh - i will attempt these corrections!!