Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,555,729
Community Members
 
Community Events
184
Community Groups

Logging work from Jira in Personio

Edited

I set up an automation which is called every time someone logs work.

I use a web request https://api.personio.de/v1/auth to Personio's API to receive a token. With this token I can use https://api.personio.de/v1/company/employees to get the employees id using Jira's smart value {{initiator.emailAddress}}.

I send a third web request to receive a new token. So far so good ...

With the forth request and the new token I want to use POST and https://api.personio.de/v1/company/attendances to log the time. Here I get the response from Personio {"success":false,"error":{"message":"personio.core.api.exceptions.api.forbidden.http.exception","code":0}}

Can anyone help?

1 answer

0 votes
Jacopo Pellegrino
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Apr 17, 2023

Hi Moritz,

I'm having some issues with the employees endpoint but I could make the attendance one work with the setup below:

Headers: Authorization, accept, content-type

Method post

Web Request body:

{
"attendances":[
{
"employee":{{ids.get(initiator.emailAddress)}},
"date":"{{now.jiraDate}}",
"start_time":"{{worklog.started.convertToTimeZone("Europe/Rome").format("HH:mm")}}",
"end_time":"{{worklog.started.convertToTimeZone("Europe/Rome").plusSeconds(worklog.timeSpentSeconds).format("HH:mm")}}",
"break":0,
"project_id":{{projects.get(issue.Personio Project)}},
"comment":"{{worklog.comment}}"
}
]
}

I hope it helps!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events