It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to change Jira textField value with script runner ?

Dear colegues from ATLASSIAN Community! 

I wnat to change Jira textField value with script runner. 

Someone can help me ? 

I tried to use:

setFormValue("None")]

 Not working. 

Kindy Maikes

2 answers

Hi there,

Can you provide us with some more information on this please? I think you are trying to write a behaviour, here is one I have written before which writes to the description field

 

import com.onresolve.jira.groovy.user.FieldBehaviours
import com.onresolve.jira.groovy.user.FormField
import groovy.transform.BaseScript
@BaseScript FieldBehaviours fieldBehaviours

def description = getFieldById("description")

description.setFormValue("BlaBlaBla")

I want to display values in a field [recurso], "Text Field", base on a previous select list values [OpcaoX]. 

The field [recurso] is retrieved from database table!! 

 recur.png

I'm sorry I don't understand your question here, are these standard jira fields? using customfields etc?

if not I'm afraid I wont be able to help.

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you