Hi Team,
I am working on an integration between Jira and ServiceNow to automatically create Time Cards in ServiceNow based on the hours logged in Jira.
Current Setup
- Projects are initially created in ServiceNow.
- During project creation, a corresponding Jira Space/Project is created through the integration.
- Under the Jira project, users create and work on:
Business Requirement
When a user logs work hours in Jira:
- The worklog should be sent to ServiceNow.
- ServiceNow should identify the corresponding Project.
- A Time Card should be created against the same Project in ServiceNow.
- Logged hours should populate the Time Card automatically.
Issue
I need the Jira Space/Project details when a worklog is created.
I noticed the following behavior:
Working Scenarios
When the following events occur, I can see the Jira Project/Space information in the payload:
- New Epic creation
- New Story creation
- Comments added to an issue
- Issue updates
Problem Scenario
When a Worklog Created event is triggered:
- The payload contains worklog details.
- I am unable to get the associated Jira Space/Project information directly.
- Without the project information, I cannot map the worklog to the correct ServiceNow Project and create the Time Card.
Questions
- Has anyone implemented Jira Worklog → ServiceNow Time Card integration?
- How do you retrieve the Jira Project/Space details when a worklog event is received?
- Is there a Jira API that can be called from the worklog event using the Issue Key/Issue ID to retrieve the related Project?
- Do I need an additional lookup from:
- Worklog → Issue
- Issue → Project/Space before creating the Time Card?
- Are there recommended best practices for maintaining the relationship between:
- ServiceNow Project
- Jira Project/Space
- Jira Issues
- Jira Worklogs
- Has anyone implemented Jira Worklog → ServiceNow Time Card integration?
- How do you retrieve the Jira Project/Space details when a worklog event is received?
- Is there a Jira API that can be called from the worklog event using the Issue Key/Issue ID to retrieve the related Project?
- Do I need an additional lookup from:
- Worklog → Issue
- Issue → Project/Space before creating the Time Card?
- Are there recommended best practices for maintaining the relationship between:
- ServiceNow Project
- Jira Project/Space
- Jira Issues
- Jira Worklogs