Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Update field in external tool using ScriptRunner Cloud

Hi all,

I'm using ScriptRunner for Jira Cloud, and am wanting to update a field in an external tool when a Jira field is updated.

Each Jira issue is given a Custom field A value upon creation, a unique ID matching to a corresponding field with the same ID in the external system, and Custom field B, a single-select list field which is also present in the external system, which is given a value at some point during the workflow.

When Custom field B's value is changed in Jira, I would like a script to run which finds the task in the external system with the same unique ID in Custom field A, and copies across/updates the value given to Custom Field B.

My knowledge on scripting/ScriptRunner is very minimal, so any help would be greatly appreciated!

1 answer

1 accepted

1 vote
Answer accepted

Hi Callum,

Thank you for your response.

I can confirm that with ScriptRunner with Jira Cloud that it is possible ti write scripts which interact with external systems and you can see further information on how to do this in the Knowledge Base Article here which explains ways to understand how the external third party API works.

You would then write a script configured as a Script Listener to run on the Issue Created event and your script would then have some logic in it to check if Custom Field A had specific value using an If statement and if it did then it would have some logic to call the external system and to update the value in custom field A.

I can confirm we have the example in the documentation here which shows how to call Slack and is an example of calling an external API that you can use as a reference as well as the examples here and here which show how to update fields on an issue that can be used as a reference to help you create the script that you require.

I hope this information helps.



Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Jira Service Management

Add links to external resources in your Jira Service Management portal

Hello everyone!  We are excited to release a new capability on Jira Service Management which will enable project admins to add links to external resources on their Portal. The external resou...

209 views 4 9
Read article

Atlassian Community Events