Forums

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

Text Not Highlighting Inline As Expected

Deleted user
January 2, 2018

I'm trying to assist one of my teammates with the Highlight macro, and I'm having a devil of a time getting content in the middle of a sentence highlighted. I can get it to work if I want to highlight content at the beginning of a sentence (and then have subsequent content un-highlighted), but not if I want to have the beginning plain and end highlighted. Is there some flaw in the Highlight macro that prevents it from being placed inline properly? Am I doing something wrong?

Process:

  1. Enter text via the editor
  2. Add the Highlight macro in the text where I want the highlight to begin
  3. Enter the text in the macro body and ensure that display inline is selected, then publish
  4. Page does not display the highlight inline with other text; the first portion is split to a separate line

 

Examples:

HighlightMacroExamples.jpg

2 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Vikrant Yadav
Community Champion
October 31, 2022

Hi @Davide Cascapera Apply Scriptrunner behaviour on Field 2 :- 

Try below script it should work :- 

def field1 = getFieldById("customField_20600")

def field2 = getFieldById("customField_10001")



 if( field2.getValue()== "my chooise"){

field1.setHidden(false)

} else {

field1.setHidden (true)

}

  Thanks

V.Y

Davide Cascapera
Contributor
October 31, 2022

Hi Vikrant thx for ur suggestion but doesnt work, I tried now and the field1 continued to stay in hiding when I select "my chooise" in field2

Vikrant Yadav
Community Champion
October 31, 2022

Hi @Davide Cascapera  i have tested the script on my machine , Script is working fine :- 

Have you applied behaviour script on Select list field ? 

 

def application = getFieldByName("Application Count")//Select list field

def description = getFieldByName("Description")//text field

if (application.getValue() == "1"){

    description.setHidden(false)

} else {

    description.setHidden(true)

}
Davide Cascapera
Contributor
October 31, 2022

Schermata 2022-10-31 alle 15.38.07.pngSchermata 2022-10-31 alle 15.38.32.pngSchermata 2022-10-31 alle 15.38.49.png

Davide Cascapera
Contributor
October 31, 2022

before dependent leave I should see  a field named Settlements

Davide Cascapera
Contributor
October 31, 2022

I know that the syntax is correct and the behavior should be working, I think maybe there is another bheavior goes in conflict with mine

Vikrant Yadav
Community Champion
October 31, 2022

@Davide Cascapera  Thanks for the screenshot,  Custom Request Type is not a Custom field, this is Scripted field or Programmatically field, that's why behaviour is not working. 

Like Davide Cascapera likes this
Davide Cascapera
Contributor
October 31, 2022

Thank you very much for the help Vikrant !!!!!

Like Vikrant Yadav likes this
Vikrant Yadav
Community Champion
October 31, 2022

You’re Welcome 😊

Happy to help!

Like Davide Cascapera likes this
0 votes
Alex Koxaras -Relational-
Community Champion
October 31, 2022

Hi @Davide Cascapera 

From the script you provided, I'll take it that you are working on server, rather than on cloud that you have stated in this thread. I'll change the tags.

Davide Cascapera
Contributor
October 31, 2022

oh my bad sry! ty for changed tags

TAGS
AUG Leaders

Atlassian Community Events