Skip to main content

Parent status field

This Scripted String Field shows the status of the work item's parent, for example the epic a story belongs to. A work item without a parent shows nothing.

Applies to: Script Master for Jira Β· Cloud

Jira returns the parent's status as part of the parent field, so one request is enough.

const response = await api.asApp().requestJira(route`/rest/api/3/issue/${payload.issue.id}?fields=parent`, {
headers: { 'Accept': 'application/json' }
});
const data = await response.json();

return data.fields?.parent?.fields?.status?.name;

The app has the same script as the String: Parent Status snippet.