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.
Relatedβ
- Write the field script: where to paste this script.
- Parent assignee field: show who the parent is assigned to.
- Get issue: the Jira REST API this script calls.