Hi,
We are scratching our head here.We are using Tempo Timesheets, configured with an account worklog attribute.What is the api to set this account
Context
Check the exalate community post There is a specific use case where Account information needs to be synced between 2 jira servers.
Hi Francis,
can I ask you why you are not using the REST API instead?
BR
Hi Alexander,
the REST API would be fine if we would not need to write the Basic Auth credentials into the script. Is there a way to get the credentials of the user executing the groovy script and use those to call the REST API?
Best Regards,Daniel
Hi Daniel,
you should refer to this script. So something like:
def loggedInUser = ComponentAccessor.jiraAuthenticationContext.loggedInUserdef credentials = ComponentAccessor.userPropertyManager.getPropertySet(loggedInUser).getString(userPropertyKey)
As you run the script as a certain user you need to make sure that this user has the correct permissions in Tempo.
Hope that helps
thank you, this looks perfect. I will try this approach.
It looks like you're new here. Sign in or register to get started.