JJupin - Live Fields: How to know the issuetype in a SIL script?

I need to launch a lfSet("customfield_XXXX",{" "," "}) in the initial script only when user launches specific transitions in flows.

The next code doesn't works for me:

string pantalla=argv["screen"];
if (pantalla == "trans_841")){
     lfSet("customfield_20901",{" "," "});
}

becasue the transition 841 exists for several flows and are diferents transitions.

Then, my problem is: the same "transition id" has been assigned to diferent transitions in several flows. Then I need to distiguish in which flow is the user when the transition is launched. For example, I need to know the name of the flow or the issuetype (because I've a distinct flow for each issuetype).

 

How can I do that?

1 answer

Hi,


You could try something like this:

if (pantalla == "trans_841" && issueType == "Bug")){

or you could try to simply add a postfunction on that transition in which you set the value: 

customfield_20901 = {" ", " "};

 

Hope this helps,
Alexandra 

I'll try with the firts option because I need that the customfield was cleaned when the transition screen opens. After that the user can populate the customfield and I can't clear this value.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

158 views 1 17
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you