Hi,
I have a project where I create an issue. The ticket is now in Waiting for support.
My next status is: In Progress
Prior to getting to that status I have set a transition called Pick Up:
Within this transition I have setup post functions, namely: Create A Linked Issue (JSU) in another project. It creates a linked issue without any problem.
Now I am in the project where the linked issue is created. This linked issue has a Smart Checklist, the Source issue also has a Smart Checklist.
Within the workflow of the linked issue I have created a transiton which is called: Update Master:
As you can see it is a loop from In Progress to In Progress.
Within this transition I have added a post function (scriptrunner):
As far as I can see I have everything setup correctly but the post function is not updating the smart checklist of the issue uin the other project.
What am I missing?
Many Thanks.
Regards
Howard
Hi @Howard Nedd !
The problem is that “Copy field values [ScriptRunner]” does not trigger issueUpdated event. And Smart Checklist plugin listens to issueUpdated events and checks if the field Checklists was updated. Nothing was updated in your case because issueUpdated was not triggered.
Instead of adding a “Copy field values [ScriptRunner]” post function we suggest to add a “Custom script post-function [ScriptRunner]” with the following code (sorry, Atlassian doesn't allow to paste it here).
Hi @Julia Romanenkova_TitanApps_ ,
Thank you for taking the time. I added the suggested script via a custom script post function [scriptrunner] to transition within the workflow. Sadly, this is still not giving me the desired result.
Am I doing something wrong here?
Regards
Howard
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Howard Nedd there should be an execution log on the scriptrunner post function, have you looked at that for clues?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Craig,
Thank you for replying.
That's the first place that I have checked but it is just stating that all is OK:
Which makes it even more dificult to solve.
Any tips and tricks :)?
Cheers
Howard
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not so much errors but what's in the payload .. is it accurate ? Project Issue etc etc for both issues..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good find Craig.
For some reason the payload is reffering to the same issue twice. Not sure that should be the case. So, TESTISSD-224 should be the trigger issue, but not the target issue. I would expect to see the target issue here which is in another project.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also, any idea why this is saying defect?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I suspect this setting here...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
lol you're fast.
that's your inward / outward link description setup by the jira admin. Getting this right is really important
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So I changed it from created by to created as I suspected that that was the issue but this did not solve it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As you can see I am making the logic choice by using "Created By" as this is the link type that the issue has:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.