Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,297,240
Community Members
 
Community Events
165
Community Groups

Create Issue with reporter as email - Jira API or PowerAutomate connecter

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.

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-post

Thanks,

Zain

1 answer

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

346 views 0 10
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you