Hi,
I am trying to integrate powervirtual agents (bot n ms365) with jira service management.
I am able to create jira tickets via api from info user provides to bot. However, the reporter field requires an account id, but I want to be able to set the reporter field by the email of the user that is creating the issue.
I have also tried the jira connector in power automate and it doesn't have option for reporter.
I can't seem to find a workaround for it, any suggestions you can provide are appreciated.
Thanks,
Zain
Hi @Zain Ali
I am not familiar with the integration that you are working on. But I am familiar with the REST API that you shared. You do not need to specify the Reporter id. By default, the user that you use to run the REST API will be the reporter of the newly created issue. Here is an example:
curl --request POST --url https://<domain>.atlassian.net/rest/api/3/issue -u '<user-email>:<api-token>' --data '{"fields": {"summary": "Test the automation","issuetype": {"id": "10002"},"project": {"key": "IP"},"description": {"type": "doc","version": 1,"content": [{"type": "paragraph","content": [{"text": "This is the description.","type": "text"}]}]}}}' --header 'Accept: application/json' --header 'Content-Type: application/json'
The user that you specified in <user-email> will be the Reporter of the newly created issue. Just make sure the user has Create Issue permission or the customer of your JSM portal.
I hope the above explanation helps!
Regards,
Marini
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.