- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 03:02 AM
Hello,
I am stuck with a requirement.
The requirement is simple. We have a Jira Task that we create from Incident (so the the incident is the parent of the jira task). We want to copy the short description of the incident to the summary field of Jira task, which should be displayed before the submission so that the user can see the copied information and edit if required.
I wrote a BR. But because it is on server-side, it only works when I submit the Jira task. What I want, however, is that once the user navigates to Jira task form to create a jira task, short description should already appear before I submit the form.
How can I achieve this?
Best,
Firat
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 05:31 AM
then use this in display business rule
(function executeRule(current, previous /*null when async*/) {
// Add your code here
current.fieldName = current.parent.short_description;
})(current, previous);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 03:24 AM
@Brad Bowman thanks for the reply.
Jira task is added as a relationship. Then it appears in the related records. I checked it but it seems what you suggested is not possible?
Best,
Firat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 03:21 AM
so incident is submitted in ServiceNow it creates a JIRA task.
User navigates to JIRA task form -> does this mean in JIRA UI?
Your requirement is not clear.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 03:28 AM
Hi @Ankur Bawiskar,
Jira Task is relationship added to the incident table. It appears in the related records. When we click "new", it creates a new Jira Task with Parent being that incident.
It seems that indeed, GlideAjax or g_scratchpad object would do the job indeed.
Best,
Firat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 03:44 AM
you can use display business rule on that related list table and show the incident's summary
Give the correct field parent
(function executeRule(current, previous /*null when async*/) {
// Add your code here
g_form.addInfoMessage(current.parent.short_description);
})(current, previous);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 05:29 AM
@Ankur Bawiskar, the requirement is not to show an info message but to copy it to the summary directly!