Run SIL script on View issue page

Is it possible to run a SIL script on a view issue page and display a Global message (using lfGlobalMessage) on View Issue screen?

1 answer

1 accepted

Accepted Answer
0 votes

Hi Salman,

Yes, it is possible to run a Live Fields SIL script on any screen. By default, a live fields SIL script associated to certain projects will execute on all issue screens for the given projects.

You can control on which screens to execute your SIL script using the argv["screen"] parameter inside your script. For example, if you want a live fields SIL script to execute only on the view issue screen your code should be:

if(argv["screen"] == "view") {

//your code here

}

You can find more details about accessing the current screen inside your scripts here:

http://confluence.kepler-rominfo.com/display/JJUPIN/Accessing+the+current+screen

Regards,

Alex

No, at the moment there is no support for the link issue screen in live fields.

Thanks! That works like a charm. I also see that it can identify transistion screens.

Is it also possible to identify if it is the Link Issue screen somehow?

Trying to restrct the options in Link types for specific issue types! I figure if I can identify link issue screen, that can be done easily.

I have looked into Validations based on conditions but that does not solve my problem, whoithout having to write a spearate validation plugin. And in case, after creating an issue, user can go to link page and change things which wont be validated through that plugin anyway.

So I recon, if I can limit the options itself, chances of things going wrong will be reduced.

Any possible work arounds?

What are you trying to do on the Link Issue screen?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Featured Groups

Tuesday tips & tricks: What is the Atlassian Community?

It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...

40 views 2 3
View post

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