Forum Discussion

lucasf1's avatar
lucasf1
New Contributor
2 months ago
Solved

executedBy field for testrun endpoint

Hello community! I am tasked with utilizing this endpoint to post test case results to our zephyr org instance: 

/testrun/{testRunKey}/testcase/{testCaseKey}/testresult

There is a specific field for this that is titled "executedBy" which I would assume applies to the Executed By: field on the specific test case UI

However, any combination of things I put here does not populate that field with my user. 

I do not get any explicit errors for the values I have put here. I have tried these items:

username
first.last

Display name
email

none of these seem to place my user into that field on the UI. Is there something I am missing here? Is there a different value I am supposed to put in this field? Any help would be appreciated. Thank you.

  • Hi lucasf1 

    I believe this will work if you use the Jira Account ID - at least it has done for me in the past when I have manually imported a CSV file.  You can find user Account IDs using the Jira REST API endpoint:

    GET https://yourdomain.atlassian.net/rest/api/3/users/search

    Or, for a quick check, you could use "Export to XML" on an issue and you will see the Account IDs for Reporter & Assignee

2 Replies

  • MisterB's avatar
    MisterB
    Icon for Champion Level 3 rankChampion Level 3

    Hi lucasf1 

    I believe this will work if you use the Jira Account ID - at least it has done for me in the past when I have manually imported a CSV file.  You can find user Account IDs using the Jira REST API endpoint:

    GET https://yourdomain.atlassian.net/rest/api/3/users/search

    Or, for a quick check, you could use "Export to XML" on an issue and you will see the Account IDs for Reporter & Assignee