Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

A post-function based on the project it is created

Ammara_Samar May 27, 2020

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.

2 answers

0 votes
Denise_Wuethrich_beecom_products
Contributor
May 28, 2020

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

Ammara_Samar May 30, 2020

Thanks @Denise_Wuethrich_beecom_products for the update. Will surely check.

0 votes
Tansu Akdeniz
Community Champion
May 28, 2020

Hi @Ammara_Samar 

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

Ammara_Samar May 28, 2020

Thanks @Tansu Akdeniz for your reply,

Can you please share the groovy code template if easy for you?

Appreciate your help.

Tansu Akdeniz
Community Champion
May 28, 2020

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.

Ammara_Samar May 30, 2020

Thanks @Tansu Akdeniz for your feedback. I will try this.

Suggest an answer

Log in or Sign up to answer