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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Structure not syncing when issue updating from job script

Hi!

I wrote a job script in script runner that update a custom field on specific issue. when the script is running, the issue is being updated, but the structure that contain the issue doesn't (only after the cache of the structure is cleared).

I've searched on the web and found this link

but it didn't help me much (I tried the suggested option, including in the suggested thread, and it did nothing).

When the script is running, the history of the issue isn't updating. 

So my question is: How to sync the structure with the issue, with the job script?

Thank you for your help!

1 answer

0 votes
David Niro
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 14, 2022

Hello @aviv_eldad ,

Do I understand correctly that you have tried the options listed below, but the history is still not reflecting the change?

If there's no update on the Issue History, our suggestion is to change the script to use either one of these options:

  • initiate issue event manually using IssueEventManager
  • use IssueManager.updateIssue() with corresponding event dispatch option to update the field.

If I have it right, you may want to reach out to Adaptavist's support team here.

Structure is listening for these events in order to prompt a refresh.  Otherwise the previous values will remain until a cache clear (as you have noticed)

I hope this helps.

Best,
David

Hi @David Niro , thank you for the quick response!

I've tried the solutions, but it did not worked out for me. when I tried the updateIssue() function' I got an error (maybe I didn't put the right parameters? I've searched in the documentation and didn't understand it to the end )

Anyway, I will reach out to the support.

Thank you!

Aviv

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events