I am trying to access the hierarchy level information for an issue in an Automation rule. The hierarchy level is an attribute of the issuetype structure:
"issuetype":{
"self":"https://something.atlassian.net/rest/api/2/issuetype/10004",
"id":"10004",
"description":"",
"iconUrl":"https://something.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10300?size=medium",
"name":"Feature",
"subtask":false,
"avatarId":10300,
"hierarchyLevel":2
},
I can reference many of the attributes using this syntax
{{issue.issuetype.name}}
...including id, description, name, and subtask.
But when I try {{issue.issuetype.heirarchyLevel}} or {{issue.issuetype.avatarId}} in a Log Action, nothing is printed in the rule execution audit log.
I checked for a change request for this but did not find one.
hierarchyLevel is a field available in JQL:
https://support.atlassian.com/jira-software-cloud/docs/jql-fields/#Hierarchy-level
I was trying this on a Premium subscription system at all issue type levels where the hierarchy is:
Feature > Epic > Story > Sub-task
Is anybody aware of a method to get an issue's hierarchy level in an Automation rule?