Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Re-implementing support for Directives in JEMHC will be an ongoing activity.  This page reflects the status of support for modifying issues through Directives, processed by Field Processors. Dependent on priority level i.e. Mapping Rule level directives overrides Project Mapping level directives and Project Mapping level directives overrides Default Project Mapping inheritance level directives.

Directive

On Create

On Comment

Notes

summary

(tick)

(tick)

Replaces existing summary

reporter

(tick)

(tick)

Replaces both from address and profile's default reporter

emailSenderAsUser

Not supported yet

Not supported yet


assignee

(tick)

(tick)

Replaces profile's default, If the assignee is not assignable, the message will be rejected

issueType

(tick)

(tick)

Issue type is specially important because the metadata depends on it. If not valid for the project, the message will be rejected

issueKey

N/A, JEMH will comment the issue if it exists

Yes, changes issue to be commented/updated taking precedence over the issue key in subject, mime header threading and the associated issue to the mime message id.

Equality condition and custom JQL are supported (1.0.86+), JEMHC resolves the first not resolved issue that matches the criteria.

Examples:

  • Issue Key: @issueKey=PKEY-123

  • Equality: @issueKey=Custom Field=Some Value

  • JQL: @issueKey='Custom Field' ~ 'Some Value'

  • JQL: @issueKey='External Id' ~ '#12345' and project = 'PKEY'


parentIssueKey

(tick)

(error) Possible UC could be replying to a subtask issue with @parentIssueKey changing the parent. For some reason, JIRA is not updating subtask's parent through REST.

See Can I change sub-task parent using REST?

labels

(tick)

(tick)

CSV splitting the field processor value, not taking in consideration any escaping

Label values are 'set' not 'added'. Currently overrides the 'profile' labels (should we merge?) added with the labels set inissue parameters in the Profile.

priority

(tick)

(tick)


description

(tick)

(tick)

Replaces the post processed body of the email

comment

(tick)

(tick)

Create: Adds the directive's value as a comment after the issue has been created.

Comment: Uses as body of the comment replacing the body of the post processed email

components

(tick) Yes - Set

(tick) Yes - Update

Not escaped CSV. If one of components in the list is invalid, it will be ignored (with reporting)

project

(tick) Yes - It changes where the issue will be created ignoring the project key in profile

Yes but it just used as validation. Comment fails if the resolved issue key doesn't belongs to the project

Project is also important as metadata depends on it. Validation in UI can fail during processing. e.g: some custom fields or issue type is not available in the directive's project

dueDate

(tick)

(tick)


requestType

(tick)

(error) Not possible to change

Service Desk’s request type. Name or id can be provided. For example:

#requestType="Other Questions"

#requestType=13

dueDateFormat

(tick)

(tick)

Replaces profile's default due date

Epic Label

(tick) 

(tick)

It set the epic label of the create or updated issue only if the issue is of type Epic 

@Epic Label=The Epic Label

Epic Link

(tick)

(tick)

Value can be either the key or the label of the target epic.

@Epic Link=SCRUM-123

@Epic Link=The Epic Label

Sprint

(tick) 

(tick)


it assigns the issue to a sprint.

@Sprint=6 (Sprint with id 6)

@Sprint=Board Name:Sprint Name

@Sprint=Board Name (Active sprint in board 'Board Name')

watchers

 (tick)

 (tick)

@watchers=someJiraUserName, someJiraUserEmail@myCompany.com

viewable

Not supported yet

Not supported yet


ccusers

Not supported yet

Not supported yet


workEstimate

Not supported yet

Not supported yet


environment

(tick) Yes - Set

(tick)


linkto

Not supported yet

Not supported yet


affectsVersions

(tick)

(tick)

Not escaped CSV. If one of versions in the list is invalid, it will be ignored (with reporting). affectsVersions is actually the field labeled 'Affected Versions' in the Jira issue view.

fixVersions

(tick)

(tick)

Not escaped CSV. If one of versions in the list is invalid, it will be ignored (with reporting).

vote

Not supported yet

Not supported yet


logWorkDone

Not supported yet

Not supported yet


securityLevel

(tick) - Set

(tick) - Update

The field name is 'security'

attachments

Not supported yet

Not supported yet

Attachment is not a field

stripComments

Not supported yet

Not supported yet


Worklog directives

Not supported yet

Not supported yet

All the directives related to work-log

notifyOnEdit

Not supported yet

Not supported yet


workflow

(tick)

(tick)

Resolution defaults to Fixed. Only One transition permitted (so far). Basic version. The transition is applied after everything else: update issue, comment issue, upload attachments

workflow:Start Progress

@workflow=Close Issue

workflow.resolution

(tick)

(tick)

Resolution is set if it's allowed in the transition, e.g. workflow:Close Issue

workflow.resolution=Duplicate

workflow.params

(tick)

(tick)

A workflow field is set if it is allowed in the transition or it is allowed in the issue after the transition has been applied.

workflow.params.description:The description applied during or after the transition

workflow.params.customfield_10001:Custom Field Value

issueTemplate

Not supported yet

Not supported yet


custom fields

(tick) Set overriding default custom field values but not the custom fields used for email only users

(tick) Update (including custom fields used for email only users)


internalComment

(tick) if there is a @comment directive

(tick)

If the issue is a Jira Service Management request, @internalComment=true or @internalComment=yes (case insensitive) marks the created comment as being internal. Otherwise @internalComment=* marks the comment as public (shared with customer). The directive overrides the Project Mapping's 'Service Desk Comment Mode' configuration.

Users may find it useful to create @internal @public directive aliases from @internalComent=true/false respectively.

...