Hi, we are having a rule to create a new issue when a webhook triggered in an event, the initiator is returning as blank, how do we get the current user name?
Hi @Villarasan
The {{initiator.displayname}} smart value is looking for the user in Jira. So if the initiator is a webhook, that smart value will not work as the initiator isn't a Jira user in this scenario.
Is the {{issue.summary}} working? if so, then perhaps {{reporter.Displayname}} might work??
thanks Curt, {{issue.summary}} works fine. reporter doesn't work for us, because we are setting the initiator as reporter in additional field update section. Also this issue is created by rule, so reporter doesn't have the current user.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Villarasan the Incoming webhook is sending the Atlassian Account Id of the initiator ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We have created a webhook like below and triggering this webhook in a post function. we are passing the issue key alone, how should i pass the account id and get that in the rule.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But in the Incoming Webresquest, you have some options, like show bellow
I believe that you use the first case "Issues provided in the webhoook HTTP Post body" to get the data correctly ?
In some automation that you use to trigger this automation, maybe you are using "Send Web Request", then in this automation you need only to set "Issue data (Automation format)
This maybe help you, but I don't know if I managed to give you a direction to look for the information you need, but if you can share more both the Incoming and the Send web request, it would help to try to find the desired smart value.
If this post was helpful, mark it as "Accept Answer" , so you can help others who may have the same difficulties.
If your question has not been resolved, please post again with more details.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.