It's not the same without you
Join the community to find out what other Atlassian users are discussing, debating and creating.
Hi,
I need to validate on create transition, that issue has a specific link (name: CR).
I have scriptrunner if it helps.
No expirience in groovy tho...
Hi Jan,
There is an almost exact example (you only have to change the linkDescription) in the documentation.
And this validator will be on the Create step.
Hi Thanos,
Maybe I'm not using this correctly but In my experience the example script does not work when creating an item. Because the item has not yet been created and the link has not been created the validator simply throws an exception every time I click "Create".
Placing the validator at the next transition always works however.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Highly unlikely for that script to cause a CPU spike.
Try something more simple, like just throwing an exception every time
import com.atlassian.jira.issue.IssueFieldConstants import com.opensymphony.workflow.InvalidInputException throw new InvalidInputException("You must link a blocker issue at this transition")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How to add a condition to this code.. so it would work only for projectkey= CR ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...
Connect with like-minded Atlassian users at free events near you!
Find a groupConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.
Start an AUGYou're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.