-
How do i get a value from a custom field in SIL
Here my code i'm trying to acces a customfield value but i'm having an error string[] parentIssuekeys = linkedIssues(issuekey,"Link",1); string highestSeverity = "None"; for(string parentIssuekey in parentIssuekeys) { string parentSeverity = %parentIssuekey%.#{Severity}; } %issuekey%.#{Severity} = key.#{Severity};
-
Post List of Epics in Current Sprint with Data About Epic and Related Issues in Sprint
Objective Post a Slack message to display the list of epics in the current sprint, showing the key, summary, assignee, and priority, as well as the number of issues and story points in the current sprint for that epic. Description Below is what the Slack message I am wanting to post, where I would iterate over each epic in…
-
Jira automation string manipulation with regex
Hi, in my automation I have a string that ends with the string ": CHGnnnnnn" where n is any digit. I want to remove the " : CHGnnnnnn" part from the string so I am left with the root e.g. "iantest99 : CHG000123" becomes "iantest99". I have tried {{varSource.remove(" : CHG[0-9][0-9][0-9][0-9][0-9][0-9]")}} and other…
-
String replace on a variable in an automation script
Original question below but having done further testing is more fundamental How can I use variables in the String replacement part e.g. {{webresponse.body.name.replace("CHG","GHC")}} works but VarOne=CHG and varTwo=GHC {{webresponse.body.name.replace("{{varOne}}","{{varTwo}}")}} gives syntax errors. How can I use variables…
-
How to process a String using parameters? for e.g. string.abbreviate(null, 6)
I have an automations that uses a JQL query that looks like this: {{issue.Selection Field.value.toUpperCase().abbreviate(8)}} It works absolutely fine. However, it ends up leaving the "..." at the end, so I did some search and found out that 'abbreviate' can be used with different parameters, so {{abbreviate(string, null,…
-
WYSIWYG fields wont allow more than 1 line of text in ConfiForm
Hi, I have created a ConfiForm that on user submissions creates a Task in Jira. I have a couple of WYSIWYG fields however these are causing me some problems. If a user types just one line the form works, but if they press ‘enter’ on the keyboard and create a new line in this field, Confluence shows the below error when…
-
Text not to be converted to Jira issue link
How can we prevent text string being treated and shown as a Jira issue link? We have the set-up where our document naming convention is close to the Jira issue naming convention. This causes situations where we refer to a document, say, ABC-1234 in Jira Issue. When this field is rendered in Confluence table, the text is…
-
Parse ARN from message field
Hi All, I am receiving an alert from AWS that goes into the message field in OpsGenie and looks like the below: {"version":"0","id":"random_string","detail-type":"Alarm State","time":"2020-02-09T17:41:15Z","resources":["arn:....."]} From the message field in OpsGenie I want to grab the arn and place it into the alias…
-
Convert a value to a string
Hi, I'm trying to set a workaround to a Jira asset bug. The "Linked assets" field it's not displayed into any service desk queue. I'm trying to create an automation that will transfer the Linked Asset value to a new custom field, short text type. At the moment it's raising an error requiring a string value to complete the…
-
Automation for Jira - linking based on similar text field comparison
Hi, I want to create a global Automation rule which will link issues between different projects. When a new Access Request in System project is created, I want it to be linked to an HR project to a user's task. For this purpose I want to compare two custom fields: * Users' Full Name, Email, Username (Multi-line Text field)…