I use Jira cloud and i had a script which checked tickets assigned to me, but today was unable to use this script as Jira API started to response with 401 error, i read about it and it seems that username and password basic auth is deprecated from now on, no problem i've created API key, but when i run requests like:
/rest/api/2/search?jql=assignee=username+order+by+priority
i still get 400 code response with this inside:
{"errorMessages":["Field 'assignee' does not exist or this field cannot be viewed by anonymous users.","Not able to sort using field 'priority'."],"warningMessages":[]}
but in list of API key i see that key been used just recently, which means API recognize my key, what i do wrong way?