Hello,
Good Day!
Is there any post-function via which i can compare the value based on the project in which the issue is created?
Thanks in advance.
Hi, @Ammara_Samar JSU can compare the value based on the project in which the issue is created with no coding necessary.
See for yourself: https://confluence-apps.beecom.ch/display/JSU/Workflow+Preconditions
For a free trial, go here: https://marketplace.atlassian.com/apps/5048/jsu-automation-suite-for-jira-workflows?hosting=cloud&tab=overview
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There are lots of add-ons, which provide conditional based post-functions, such as Automation for Jira, JMWE, JSU etc. You can also write your own groovy code if you have Script Runner add-on.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Tansu Akdeniz for your reply,
Can you please share the groovy code template if easy for you?
Appreciate your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually, it depends what you need. Basically, you can check project key with the following code.
if(issue.getProjectObject().getKey().equals("ABC")){
// write your code
}
Go to workflow -> Create transition -> Post-functions -> Add post-function -> Script post-function -> Custom script than paste your custom code.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.