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.
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!
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.
Regards,
Kristian
We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan. &nb...
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.