Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can we do log hours of users using automation for jira form the incoming webhook

Charan goud
Contributor
February 24, 2021

Hi Team,

We want to create incoming webhook for the automate the log hours of users.

For example:

We have created one issue for tracking the leaves for the users. We are using third party application for leave tracking. So we want to integrate this tool with Jira.

Can I provide the user details in webhook data. Is it possible or not?

I have created one rule but it is taking as automation for rule only.

PFA for the reference. We need to do the log hours in the name of user. So how can i pass the user details in the webhook body.

automation for jira.PNG

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 24, 2021

Hi @Charan goud 

That is not possible yet.  Here is the suggestion to add the capability to log work on behalf of another person:

https://codebarrel.atlassian.net/browse/AUT-1736

 

Best regards,

Bill

Charan goud
Contributor
February 24, 2021

@Bill Sheboy 

Thanks for your response much appreciate!

There is no suggestion on the mentioned ticket. I am unable to see the request https://getsupport.atlassian.com/browse/JST-552299 in that ticket comment.

Please let me know can we do using REST API and scripts. Is there any way to do this.

Thanks.

Charan.

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 24, 2021

Hi @Charan goud 

I also wish we could vote on those items in the Code Barrel backlog too.

Regarding the REST API to log work, I have not done that but it seems to be supported in the REST API:

https://docs.atlassian.com/software/jira/docs/api/REST/1000.824.0/#api/2/issue-addWorklog

And if you want to continue to log the work from Automation for Jira rules, I expect you could call the REST API using a web request from the rule.  Here is an article describing how to do that.

https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828

Charan goud
Contributor
February 26, 2021

@Bill Sheboy 

Thanks a lot for your suggestion.

I have checked with my dev team. They are telling us we can't do with REST API.

We will see, can we do it with Automation for Jira in the future?

Suggest an answer

Log in or Sign up to answer