Forums

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

How to make worklog listenner wait for tempo timesheet plugin to write worklogAttributes ?

Can Yılmaz June 14, 2019

My jira software (server) instanse has tempo timesheets and i have a workType attritube that tempo handles for worklogs. 

I have a listenner that listens worklog_created event.

Listenner needs type attributes of worklog. 

I make a rest call to tempo for worklog data via url : $JIRA_BASE_URL/jira/rest/tempo-timesheets/3/worklogs/$worklogID

When i get the response, there's no worklogAttributes object at the JSON.

But, when i curl to the same url , i can see the worklogAttributes at the response JSON.

The reason for this is that my listenner executes before time-sheets plugin's listenner (that writes worklogAttributes to DB) and that's why my listenner cannot access attributes via tempo rest api.

Now, i wanna know if there is anyway for me to make my listenner wait for tempo-timesheets plugin's listenner ? 

0 answers

Suggest an answer

Log in or Sign up to answer