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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Configuring a confluence job

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?

1 answer

1 accepted

0 votes
Answer accepted
Diego Atlassian Team Sep 16, 2020

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.0.1
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

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...

92 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you