Forums

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

Team Calendars - Advanced Options

Jesse
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 10, 2013

We have recently begun using Confleunce calendars to track various projects and work items. One of the questions reagrding adding events to a team calendar has been one of making an event repeatable. As it stands, we can make repeat every month on the same exact day, but we have yet to find an option to make it repeat on a specific day of the week.

Example: We have meeting X that occurs every 2nd Tuesday of each month. While we can set a calendar event up to repeat on the 12th of each month, we have yet to find the option to mark it repeated on the 2nd Tuesday of each month.

Does this option already exist (and we are over-looking it) or if it does not exist, are there plans on adding it in future updates?

2 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
1 vote
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 29, 2018

This is just about using variables in groovy.  Try replacing

(issue.getSummary().contains("Escalation EMEA Project XY"))

with

def thingy = "Escalation EMEA Project XY"
(issue.getSummary().contains(thingy))

Note that in your question, you had also swapped "contains" for an exact match of "equals"

bschmi
Contributor
September 30, 2018

Thanks! I think I got an idea how it is supposed to work. While "equals" seems to work "contains" throws an error.

 

[Static type checking] - Cannot find matching method
java.lang.String#contains(com.atlassian.jira.issue.fields.CustomField).
Please check if the declared type is right and if the method exists.
Possible solutions: contain(java.lang.CharSequence),
contains(java.lang.CharSequence), toString(), toString(), toString(), notify() @ line 19, column 4

(issue.getSummary().contains(ticketReferenceValue))


Where the variables are defined as follows:

def ticketReference = ComponentAccessor.getCustomFieldManager().getCustomFieldObject("customfield_10302")
def ticketReferenceValue = issue.getCustomFieldValue(ticketReference)


A typical content of the customfield is something like
[Ticket#123456]
I am unsure if the content is the reason for the error message (especially for the brackets or the hash sign).

Is there maybe an easy way around to fix it? That would be fabulous. Otherwise I'd consider to match agains at least a static string.

0 votes
bschmi
Contributor
October 1, 2018

It is all solved now. Please ignore my previous message.

The last step missing was to use String instead of def.

 

Thanks to Nic for the good hint that pointed to the right direction.
I will mark the question as answered now.

Best regards,
Birgit

TAGS
AUG Leaders

Atlassian Community Events