You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
I have a recurring job (implements JobRunner) that I want to parameterize. I have written the job, tested it, and it works (with default parameters). I have also written and tested an Admin screen to collect my parameters. My question is relatively straightforward:
What is the best best way to communicate my parameters to the job?
Hello @robert_egan_305 !
As I understand, you are developing a Confluence Plugin and need to pass some variable values to your job.
You can use the interface called JobRunnerRequest to send the values to your JobRunner call. Since the runJob method takes the JobRunnerRequest type as a valid value for the parameter, you can send the necessary info there.
You can check more information here:
Development is not my specialty, so my help is limited. But, you can surely reach out to our sister community, the Developer Community! You can send your question here:
I hope this helps you!
I will have to try it, but I believe the correct answer is take the values from the admin screen and update the job's JobConfig using the SchedulerService. Then when the job is run, the JobRunnerRequest will contain the modified JobConfig object with the new data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond. A long time favorite, Team Cale...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.