JIRA curl-search for issues without subtask-SOLVED

Dragan Vucanovic March 6, 2018

I have a query to search project by summary and description, how to return issues without specific subtasks created

curl -XH -u user:password -X GET -H "Content-Type: application/json" https://mycompany/rest/api/2/search?jql=project='"Technology"+AND+summary~"Build%20the%20Fortimanage%20Portal"' | python -m json.tool > 1.json

 

2 answers

1 accepted

0 votes
Dragan Vucanovic March 6, 2018

Found it:

curl -XH -u user:password -X GET -H "Content-Type: application/json" https://mycompany/rest/api/2/search?jql=project='"Technology"+AND+summary~"Build%20the%20Fortimanage%20Portal"+AND+issuetype="TASK"' | python -m json.tool > 1.json
Dragan Vucanovic March 6, 2018

in fact, it doesnt work :( it returns issues with subtasks

Suggest an answer

Log in or Sign up to answer