Forums

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

How to automate a default values of custom field defending on different field value ?

Purevdorj Nyamdorj May 5, 2022

Hi, there

I am trying to make a multi user picker custom field which's default values can be changed when different field values change. That different field can be custom field or components. Is there any way to configure this one ?

2 answers

1 accepted

1 vote
Answer accepted
Vikrant Yadav
Community Champion
May 5, 2022

Hi @Purevdorj Nyamdorj Welcome to Atlassian community!

yeah you can do this if you have script runner  plug-in installed in your jira instance. 
If you have script runner plug-in , you need to write a behaviour on custom field that will change user picker default value.

 

thanks

Purevdorj Nyamdorj May 5, 2022

hi, @Vikrant Yadav 

Thank you sir,

if not wrong, script runner plug in is not free right ? is there any other ways to configure this one ? 

Regards,

Purevdorj 

Vikrant Yadav
Community Champion
May 5, 2022

Hi @Purevdorj Nyamdorj  Yes Scriptrunner is paid plugin and Script Runner behaviour is available for JIRA Server and JIRA DC not for JIRA Cloud.

As per your tags, it seems that you are using JIRA server in JIRA Server you can use one free plugin Automation Lite for JIRA this is a free plugin by Atlassian which you can for fulfil your requirement. Use trigger Issue Transition >> Apply Condition on Issue Fields >> Action Edit issue. It's simple to implement using this plugin.

 

https://marketplace.atlassian.com/apps/1211836/automation-for-jira-server-lite?hosting=server&tab=overview

 

Thanks

V.Y

Purevdorj Nyamdorj May 9, 2022

Hi, @Vikrant Yadav 

I have created the rule When : issue created, if custom field = A, then edit issue field. 

When does this rule works ? automatically 

Thank you 

Vikrant Yadav
Community Champion
May 9, 2022

Hi @Purevdorj Nyamdorj  Yes it works automatically when any new issue created. 

Thanks

V.Y

Purevdorj Nyamdorj May 9, 2022

I have configured this rule correctly but the rule audit log shows below message. 

The following issues did not match the condition:

Whats wrong about this rule ?

Purevdorj Nyamdorj May 9, 2022

213.PNGCapture.PNG

Purevdorj Nyamdorj May 9, 2022

Hi, @Vikrant Yadav 

I thought second IF statement means checking elseif but this rule was stopping when first IF statement becomes false. 

Thank you so much. Is there any ways to recommend you ? :)

Vikrant Yadav
Community Champion
May 9, 2022

Hi @Purevdorj Nyamdorj  You can use only one If statement in Automation for JIRA lite version. If/else option is avaialble in PRO version only. If you are using Automation for JIRA lite then you need to create two automation rule. One rule for each If condition.

Thanks

V.Y

Like Purevdorj Nyamdorj likes this
Purevdorj Nyamdorj May 9, 2022

Yeah, it seems like that. Thank you so much.  

Like Vikrant Yadav likes this
Purevdorj Nyamdorj May 10, 2022

@Vikrant Yadav 

Can I queries from document generator plug in sir ?

Vikrant Yadav
Community Champion
May 10, 2022

Hi @Purevdorj Nyamdorj  i am not aware about document generator plugin. You can create new post for this, someone having knowledge about this will help you.

Thanks

V.Y

Purevdorj Nyamdorj May 10, 2022

Hi @Vikrant Yadav

I have tried to install Automation for JIRA lite, but an unexpected error occurred message shows. Any idea sir ?

Vikrant Yadav
Community Champion
May 10, 2022

Hi @Purevdorj Nyamdorj What is the error , kindly share the screenshot. 

Purevdorj Nyamdorj May 10, 2022

Capture.PNG

Vikrant Yadav
Community Champion
May 10, 2022

Are you sure you are using JIRA Server not DC version and installing correct plugin version? 
If using JIRA Server, Go to Manage Apps >> Search "Automation of JIRA - Server Lite" then click on Install. 

Purevdorj Nyamdorj May 11, 2022

Hi @Vikrant Yadav 

I have configured the error. Thank you

0 votes
Purevdorj Nyamdorj May 9, 2022

1

Suggest an answer

Log in or Sign up to answer