So we have VUL and VIT in Vulnerability response in ServiceNow. And VUL will have VIT’s under it. In similar way we want that in Jira. In ServiceNow they have many to many relationships. How can we make sure that In Jira VUL are created as parent and VIT as sub task via exalate scripting? Has anyone done something like that or has idea around it?
Apologies for the late response!
Let me update you that we are working on this and will post and update soon.
Thanks,
Sonal
Hi @aditya.sinha2 ,
You can model this in Jira by creating the VUL as the parent issue and the VIT as a sub-task through Exalate scripting. The main point is that Jira sub-tasks support a one-parent-to-many-children structure, so this works well only if each VIT belongs to a single VUL in Jira.
At a high level, the approach would be:
-
sync the VUL first so the parent issue is created in Jira
-
pass the parent reference along with the VIT
-
in the incoming Jira sync, create the VIT as a sub-task under the corresponding VUL
If the ServiceNow setup is using a true many-to-many relationship, then Jira sub-tasks are not a perfect equivalent, because a sub-task can only have one parent. In that case, the better option may be to create both as standard issues in Jira and connect them using issue links instead of parent/sub-task hierarchy.
Thanks, Dhiren