Find issues by label gives error

Hi,

I have a query to get issues with lable=infra-request as below
zh_issues = gql(
“”"
query ($pipelineId: ID!, $workspaceId:ID!) {
searchIssuesByPipeline(pipelineId: $pipelineId, filters:{labels: {in: [“infra-request”]}} ) {
nodes {
id
title
ghId
number
pullRequest
pipelineIssue(workspaceId: $workspaceId) {
priority {
id
name
color
}
}
timelineItems(first: 50) {
nodes {
type: key
id
data
createdAt
}
}
repository {
id
ghId
name
owner {
id
ghId
login
}
}
estimate {
value
}
sprints(first: 10) {
nodes {
id
name
}
}
}
}
}
“”"
)

it is called using
issues = zh_query(
zh_issues, dict(pipelineId=pipeline[“id”], workspaceId=ws[“id”])
)[“searchIssuesByPipeline”][“nodes”]

this gives me error

gql.transport.exceptions.TransportQueryError: {‘message’: ‘Only available for pull requests’, ‘locations’: [{‘line’: 38, ‘column’: 7}], ‘path’: [‘searchIssuesByPipeline’, ‘nodes’, 0, ‘connections’]}