Dear Friends,
I suppose someone can help me with a solution for the problem and assume someone has already encountered this problem before.
I have created a slack bot that accepts questions on the channel and if the search results from knowledge base returns nothing, I then create a Jira issue with the chat message as the summary. I am using the restkit Resource to create the Jira and BasicAuth for authentication filter(as described in the REST API doc). A Jira is created always with my name as ‘Reporter’. This is obvious because I have hard coded my name and password in the bot script for the basic auth. What I want is to create the Jira with the ‘Reporter’ being the person who has put the message in the slack channel(assuming the user has the required access to Jira). Any ideas on this? I am able to get the name of the user who has posted the message in slack.
Also, is there a possibility that the Jira issue can be created bypassing the basic auth? (I mean in my Jira project I allow everyone to create Jira issues and do not require any auth)
Thanks for all the comments and answers.
Best Regards,
Madhav