Forums

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

Ability to automatically add custom field options

smpark July 31, 2024

 

Hello.

I'd like to use scriptrunner to create a feature that automatically adds options to a checkbox custom field in Jira when a Space is created in Confluence.

scriptrunner only have Jira server

If you are using checkbox fields in JSM and the option was added automatically, that option should appear in the JSM portal. Is it possible?

2 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Ram Kumar Aravindakshan _Adaptavist_
Community Champion
August 5, 2024

Hi @smpark

Welcome to the community.

What you are requesting is not doable directly via Behaviour. 

First, please clarify: On which instance have you installed ScriptRunner? Is it on Jira or Confluence?

If it's the former and you want an update to happen on Jira based on the modification made on Confluence, you would need to create a REST Endpoint in Jira to query if there is any value change in Confluence. Once that value is obtained, you must trigger the update in the Jira field.

It will also require something like an Escalation Service to read the REST Request maybe every minute or every five minutes, to check if there is a change on the Confluence side before triggering the update on the Jira side.

Alternatively, if you are using ScriptRunner on Confluence, you will only need the REST Endpoint to trigger the update.

Thank you and Kind regards,
Ram

 

smpark August 5, 2024

@Ram Kumar Aravindakshan _Adaptavist_ 

Thank you i got insight from your answer!!

0 votes
John Funk
Community Champion
July 31, 2024

Hi @smpark  - Welcome to the Atlassian Community!

The ScriptRunner Behaviours app would be the only that might be able to do it.

TAGS
AUG Leaders

Atlassian Community Events